Skip to content

Commit d916014

Browse files
committed
build: hotfix on manual node build
1 parent 9805de3 commit d916014

7 files changed

Lines changed: 30 additions & 7 deletions

File tree

.github/workflows/publish-node.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff 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 }}

packages/auths-node/npm/darwin-arm64/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
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
},

packages/auths-node/npm/linux-arm64-gnu/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
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
},

packages/auths-node/npm/linux-x64-gnu/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
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
},

packages/auths-node/npm/win32-arm64-msvc/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
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
},

packages/auths-node/npm/win32-x64-msvc/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
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
},

packages/auths-node/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
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": {
@@ -29,7 +33,7 @@
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"

0 commit comments

Comments
 (0)