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 8a09db2 commit 44032d5Copy full SHA for 44032d5
.github/workflows/on-merge-main-deploy-npmjs.yml
@@ -1,22 +1,27 @@
1
-# npmjs Package Deployment
2
-# https://docs.npmjs.com/about-packages-and-modules
3
-
4
name: Verify and Deploy to npmjs
+
+permissions:
+ id-token: write
5
+ contents: read
6
7
on:
8
push:
- branches:
- - main
9
+ tags:
10
+ - 'v*'
11
12
jobs:
13
deploy_npmjs_package:
14
runs-on: ubuntu-latest
15
steps:
16
- uses: actions/checkout@v4
17
18
- uses: actions/setup-node@v4
19
with:
20
node-version: '20.x'
21
registry-url: 'https://registry.npmjs.org'
22
23
+ - name: Update npm to latest
24
+ run: npm install -g npm@latest
25
- run: npm ci
26
- run: npm run npm-build-package
27
- run: cd dist/npm && npm publish
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
0 commit comments