Skip to content

Commit f75c7b0

Browse files
authored
create sdk-publish.yaml
1 parent eb937e6 commit f75c7b0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/sdk-publish.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)