Skip to content

Commit a75a3cd

Browse files
authored
Merge pull request #41 from bombshell-dev/staged-publishing
👷 Use staged publishing
2 parents f6146d8 + a6db400 commit a75a3cd

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: Stage
22

33
on:
44
push:
@@ -30,11 +30,14 @@ jobs:
3030
with:
3131
node-version: 24
3232

33+
- name: Setup npm with staged publishing
34+
run: npm install --global npm@11.21.0
35+
3336
- name: Build NPM
3437
run: deno task build:npm ${{steps.vars.outputs.version}}
3538

36-
- name: dry run publish
37-
run: npm publish --dry-run --access=public --tag=verify
39+
- name: dry run staged publish
40+
run: npm stage publish --dry-run --access=public --tag=verify
3841
working-directory: ./build/npm
3942

4043
- name: upload build
@@ -43,7 +46,7 @@ jobs:
4346
name: npm-build
4447
path: ./build/npm
4548

46-
publish-npm:
49+
stage-npm:
4750
needs: verify-npm
4851
runs-on: ubuntu-latest
4952

@@ -53,12 +56,15 @@ jobs:
5356
with:
5457
node-version: 24
5558

59+
- name: Setup npm with staged publishing
60+
run: npm install --global npm@11.21.0
61+
5662
- name: download build
5763
uses: actions/download-artifact@v4
5864
with:
5965
name: npm-build
6066
path: ./build/npm
6167

62-
- name: Publish NPM
63-
run: npm publish --access=public --tag=latest
68+
- name: Stage NPM publish
69+
run: npm stage publish --access=public --tag=latest
6470
working-directory: ./build/npm

0 commit comments

Comments
 (0)