We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ef032 commit 86ac25bCopy full SHA for 86ac25b
.github/workflows/publish.yml
@@ -3,6 +3,13 @@ name: Publish to NPM
3
on:
4
release:
5
types: [published]
6
+ workflow_dispatch:
7
+ inputs:
8
+ dry_run:
9
+ description: 'Run without actually publishing (dry run)'
10
+ required: false
11
+ default: true
12
+ type: boolean
13
14
jobs:
15
publish-npm:
@@ -35,7 +42,14 @@ jobs:
35
42
- name: Build package
36
43
run: npm run build
37
44
45
+ - name: Publish to NPM (dry run)
46
+ if: ${{ github.event.inputs.dry_run == 'true' }}
47
+ run: npm publish --dry-run --provenance --access public
48
+ env:
49
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
50
+
38
51
- name: Publish to NPM
52
+ if: ${{ github.event.inputs.dry_run != 'true' }}
39
53
run: npm publish --provenance --access public
40
54
env:
41
55
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments