File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -125,7 +125,6 @@ jobs:
125125 runs-on : ubuntu-latest
126126 if : startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'npm')
127127 permissions :
128- contents : write
129128 id-token : write
130129 steps :
131130 - uses : actions/checkout@v4
@@ -155,21 +154,21 @@ jobs:
155154 working-directory : packages/auths-node
156155 run : pnpm artifacts
157156
158- - name : Prepare npm packages
157+ - name : Publish platform packages
159158 working-directory : packages/auths-node
160- run : pnpm prepublishOnly
159+ # TODO: remove --skip-optional-publish after v0.1.0 (platform packages already published)
160+ run : npx napi prepublish -t npm --no-gh-release --skip-optional-publish
161161 env :
162- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
163162 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
164163
165- - name : Publish
164+ - name : Publish main package
166165 working-directory : packages/auths-node
167166 run : |
168167 if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ github.event.inputs.target }}" = "dry-run" ]; then
169168 echo "Dry run - skipping publish"
170169 npm pack
171170 else
172- npm publish --provenance --access public
171+ npm publish --ignore-scripts -- provenance --access public
173172 fi
174173 env :
175174 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1010 ],
1111 "description" : " Node.js bindings for the Auths decentralized identity SDK" ,
1212 "license" : " Apache-2.0" ,
13+ "repository" : {
14+ "type" : " git" ,
15+ "url" : " https://github.com/auths-dev/auths"
16+ },
1317 "engines" : {
1418 "node" : " >=20.0.0"
1519 },
Original file line number Diff line number Diff line change 1010 ],
1111 "description" : " Node.js bindings for the Auths decentralized identity SDK" ,
1212 "license" : " Apache-2.0" ,
13+ "repository" : {
14+ "type" : " git" ,
15+ "url" : " https://github.com/auths-dev/auths"
16+ },
1317 "engines" : {
1418 "node" : " >=20.0.0"
1519 },
Original file line number Diff line number Diff line change 1010 ],
1111 "description" : " Node.js bindings for the Auths decentralized identity SDK" ,
1212 "license" : " Apache-2.0" ,
13+ "repository" : {
14+ "type" : " git" ,
15+ "url" : " https://github.com/auths-dev/auths"
16+ },
1317 "engines" : {
1418 "node" : " >=20.0.0"
1519 },
Original file line number Diff line number Diff line change 1010 ],
1111 "description" : " Node.js bindings for the Auths decentralized identity SDK" ,
1212 "license" : " Apache-2.0" ,
13+ "repository" : {
14+ "type" : " git" ,
15+ "url" : " https://github.com/auths-dev/auths"
16+ },
1317 "engines" : {
1418 "node" : " >=20.0.0"
1519 },
Original file line number Diff line number Diff line change 1010 ],
1111 "description" : " Node.js bindings for the Auths decentralized identity SDK" ,
1212 "license" : " Apache-2.0" ,
13+ "repository" : {
14+ "type" : " git" ,
15+ "url" : " https://github.com/auths-dev/auths"
16+ },
1317 "engines" : {
1418 "node" : " >=20.0.0"
1519 },
Original file line number Diff line number Diff line change 33 "version" : " 0.1.0" ,
44 "description" : " Node.js bindings for the Auths decentralized identity SDK" ,
55 "license" : " Apache-2.0" ,
6+ "repository" : {
7+ "type" : " git" ,
8+ "url" : " https://github.com/auths-dev/auths"
9+ },
610 "main" : " index.js" ,
711 "types" : " index.d.ts" ,
812 "exports" : {
2933 "artifacts" : " napi artifacts" ,
3034 "build" : " napi build --platform --release" ,
3135 "build:debug" : " napi build --platform" ,
32- "prepublishOnly" : " napi prepublish -t npm" ,
36+ "prepublishOnly" : " napi prepublish -t npm --no-gh-release " ,
3337 "docs" : " typedoc" ,
3438 "test" : " vitest run" ,
3539 "universal" : " napi universal -t darwin"
You can’t perform that action at this time.
0 commit comments