Skip to content

Commit a707c68

Browse files
authored
Add publishing workflow (#3)
1 parent e2efd9b commit a707c68

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish.yaml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*"
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
env:
13+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
14+
15+
steps:
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v3
21+
with:
22+
node-version: 20.x
23+
cache: "npm"
24+
25+
- run: npm ci
26+
27+
- run: npm run build
28+
29+
- run: npm test
30+
31+
- run: npm publish

0 commit comments

Comments
 (0)