Skip to content

Commit fcc9e12

Browse files
committed
Adds release workflow to publish package
1 parent 82f9ff8 commit fcc9e12

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/release.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Setup node
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: '16'
18+
- name: Install, Build, and Test
19+
run: npm install --force
20+
- name: Publish to NPM
21+
run: npm publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)