There was an error while loading. Please reload this page.
1 parent b1eef7a commit cc84fbeCopy full SHA for cc84fbe
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,28 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ environment: npm
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
+ steps:
15
+ - uses: actions/checkout@v4
16
17
+ - uses: actions/setup-node@v4
18
+ with:
19
+ node-version: 20
20
+ registry-url: https://registry.npmjs.org
21
22
+ - run: npm ci
23
24
+ - run: npm run build
25
26
+ - run: npm publish --provenance --access public --tag beta
27
+ env:
28
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments