1 parent fb25d8f commit 55fdf62Copy full SHA for 55fdf62
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,34 @@
1
+name: Publish Package
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
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '22'
21
+ registry-url: 'https://registry.npmjs.org'
22
23
+ - name: Update npm
24
+ run: npm install -g npm@latest
25
+ - name: Install
26
+ run: npm ci
27
+ - name: Lint
28
+ run: npm run check
29
+ - name: Build
30
+ run: npm run -w lib build
31
+ - name: Test
32
+ run: npm run -w lib test
33
+ - name: Publish
34
+ run: cd lib && npm publish
0 commit comments