Skip to content

Commit 1116720

Browse files
committed
Add publish workflow
1 parent 3cf0d51 commit 1116720

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
permissions:
8+
id-token: write # Required for OIDC
9+
contents: read
10+
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
needs: tests
15+
steps:
16+
- uses: actions/checkout@v5
17+
- uses: actions/setup-node@v6
18+
with:
19+
node-version: 24
20+
registry-url: 'https://registry.npmjs.org'
21+
- name: Update npm
22+
run: npm install -g npm@latest
23+
- run: npm ci
24+
- run: npm run build --if-present
25+
- run: npm run check
26+
- run: npm test
27+
- run: npm publish

0 commit comments

Comments
 (0)