File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 44 release :
55 types : [published]
66 workflow_dispatch :
7+ inputs :
8+ dry-run :
9+ description : ' Run without actually publishing'
10+ required : false
11+ type : boolean
12+ default : false
713
814concurrency :
915 group : publish-${{ github.ref }}
3137 - name : Build
3238 run : bun run build
3339
34- - name : Configure npm authentication
35- run : echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
36-
3740 - name : Publish
41+ if : ${{ !inputs.dry-run }}
3842 run : bun publish --ignore-scripts --registry https://npm.pkg.github.com
43+ env :
44+ NPM_CONFIG_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45+
46+ - name : Publish (dry-run)
47+ if : ${{ inputs.dry-run }}
48+ run : bun publish --ignore-scripts --dry-run --registry https://npm.pkg.github.com
49+ env :
50+ NPM_CONFIG_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments