There was an error while loading. Please reload this page.
1 parent 0452e04 commit 9f648d5Copy full SHA for 9f648d5
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
1
+name: publish
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
8
+permissions:
9
+ id-token: write # Required for OIDC
10
+ contents: read
11
12
+jobs:
13
+ publish:
14
+ name: Publish to npm
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v6
19
+ - name: Setup Node.js
20
+ uses: actions/setup-node@v6
21
+ with:
22
+ node-version-file: ".nvmrc"
23
+ registry-url: "https://registry.npmjs.org"
24
+ - name: Update npm
25
+ run: npm install -g npm@latest # Ensure npm 11.5.1 or later is installed
26
+ - name: Install dependencies
27
+ run: npm ci
28
+ - name: Run tests
29
+ run: npm test
30
+ - name: Publish to npm
31
+ run: npm publish
0 commit comments