We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb937e6 commit f75c7b0Copy full SHA for f75c7b0
.github/workflows/sdk-publish.yaml
@@ -0,0 +1,26 @@
1
+name: Publish Package to npmjs
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+ workflow_dispatch: null
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ concurrency:
11
+ group: npm-publish
12
+ cancel-in-progress: false
13
+ permissions:
14
+ contents: read
15
+ id-token: write
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ # Setup .npmrc file to publish to npm
19
+ - uses: actions/setup-node@v4
20
+ with:
21
+ node-version: '20.x'
22
+ registry-url: 'https://registry.npmjs.org'
23
+ - run: npm ci
24
+ - run: npm publish --provenance --access public
25
+ env:
26
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments