Skip to content

Commit 5168b99

Browse files
committed
chore: add publish workflow
1 parent 62306be commit 5168b99

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+
# Copied from
2+
# https://docs.npmjs.com/trusted-publishers#github-actions-configuration
3+
name: Publish Package
4+
5+
on:
6+
push:
7+
tags:
8+
- "v*"
9+
10+
permissions:
11+
id-token: write
12+
contents: read
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: "24"
23+
registry-url: "https://registry.npmjs.org"
24+
- run: npm ci
25+
- run: npm run build --if-present
26+
- run: npm test
27+
- run: npm publish

0 commit comments

Comments
 (0)