We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6b2d99 commit 65cbd8aCopy full SHA for 65cbd8a
1 file changed
.github/workflows/npm-publish.yml
@@ -20,16 +20,15 @@ jobs:
20
- uses: actions/setup-node@v4
21
with:
22
node-version: 22
23
- registry-url: https://registry.npmjs.org/
+ registry-url: 'https://registry.npmjs.org'
24
- run: npm install
25
- run: npm run build
26
- - name: Publish to npm (dry-run on PR)
27
- run: |
28
- if [ "${{ github.event_name }}" == "pull_request" ]; then
29
- npm publish --provenance --access public --dry-run
30
- else
31
- npm publish --provenance --access public
32
- fi
+ - name: Publish to npm
+ if: github.event_name == 'release'
+ run: npm publish --provenance --access public
+ - name: Dry-run publish (PR only)
+ if: github.event_name == 'pull_request'
+ run: npm publish --provenance --access public --dry-run
33
34
publish-gpr:
35
if: github.event_name == 'release'
0 commit comments