Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Commit 14d2d80

Browse files
committed
Workflow: NPM publish
1 parent 6222b93 commit 14d2d80

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deployment
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
jobs:
8+
npm:
9+
if: "!github.event.release.prerelease"
10+
name: Publishing to NPM
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Install Node v14
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 14
20+
21+
- name: Install dependencies
22+
run: yarn install
23+
24+
- name: Generate build
25+
run: yarn build
26+
27+
- name: Publish
28+
uses: JS-DevTools/npm-publish@v1
29+
with:
30+
access: public
31+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)