Skip to content

Commit 745b8a0

Browse files
committed
🎨 Add automated npm publishing workflow
1 parent 299bd90 commit 745b8a0

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish tag to npm
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: moonrepo/setup-toolchain@v0
17+
with:
18+
auto-install: true
19+
- name: Install dependencies
20+
run: npm ci
21+
- name: Build, Lint & Test
22+
run: npm run start
23+
- name: Publish to npm
24+
run: npm publish

0 commit comments

Comments
 (0)