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 70baf43 commit 62c7416Copy full SHA for 62c7416
.github/workflows/publish.yml
@@ -0,0 +1,24 @@
1
+name: Publish Package to npmjs
2
+on:
3
+ push:
4
+ tags:
5
+ - "v*.*.*"
6
+jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ environment: release # Optional: for enhanced security
10
+ permissions:
11
+ contents: read
12
+ id-token: write
13
+ steps:
14
+ - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
15
+ # Setup .npmrc file to publish to npm
16
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
17
+ with:
18
+ node-version: "lts/*"
19
+ registry-url: "https://registry.npmjs.org"
20
+ - name: Update npm
21
+ run: npm install -g npm@latest
22
+ - run: npm ci
23
+ - run: npm run compile
24
+ - run: npm publish
0 commit comments