Skip to content
This repository was archived by the owner on Feb 6, 2026. It is now read-only.

Commit f782784

Browse files
infra: add npm release workflow for adding github release (#16)
1 parent 8f09409 commit f782784

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Setup node.js v14.x
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: '14'
16+
registry-url: https://registry.npmjs.org/
17+
- run: yarn
18+
- run: yarn test:cov
19+
- run: npm publish --access public
20+
env:
21+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)