Skip to content

Commit f671a30

Browse files
authored
feat(ci): Add workflow to publish tagged versions to npm (#53)
1 parent b74b20a commit f671a30

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: read
14+
id-token: write
15+
16+
steps:
17+
- uses: actions/checkout@v5
18+
19+
- uses: actions/setup-node@v6
20+
with:
21+
registry-url: 'https://registry.npmjs.org'
22+
23+
- name: Install latest npm
24+
run: npm install -g npm@latest
25+
26+
- name: npm install
27+
run: npm ci
28+
env:
29+
CI: true
30+
31+
- name: npm publish
32+
run: npm publish

0 commit comments

Comments
 (0)