Skip to content

Commit af0b234

Browse files
committed
Add a publishing workflow
1 parent 4ebf878 commit af0b234

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: publish
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
packages: write
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 16
17+
cache: npm
18+
registry-url: https://registry.npmjs.org/
19+
- run: npm ci
20+
- run: npm run lint
21+
- run: npm run typecheck
22+
- run: npm test
23+
- run: npm publish --access=public
24+
env:
25+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)