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 e6f9621 commit f671d97Copy full SHA for f671d97
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
1
+name: Publish Package
2
+# See https://docs.npmjs.com/trusted-publishers
3
+
4
+on:
5
+ push:
6
+ tags:
7
+ - 'v*'
8
9
+permissions:
10
+ id-token: write # Required for OIDC
11
+ contents: read
12
13
+jobs:
14
+ publish:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
19
+ - uses: actions/setup-node@v4
20
+ with:
21
+ node-version: '22'
22
+ registry-url: 'https://registry.npmjs.org'
23
24
+ # Ensure npm 11.5.1 or later is installed
25
+ - name: Update npm
26
+ run: npm install -g npm@latest
27
+ - run: npm ci
28
+ - run: npm run build --if-present
29
+ - run: npm run test -- --run
30
+ - run: npm publish
31
0 commit comments