Skip to content

Commit 542920e

Browse files
committed
Setup CI to update npm package when there is new commit to master branch
1 parent a9df899 commit 542920e

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: "Publish"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Build and publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Setup node.js
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: "10.x"
19+
registry-url: "https://registry.npmjs.org"
20+
- run: yarn install
21+
- run: yarn publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

.github/workflows/test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
pull_request:
55
branches:
66
- master
7-
- develop
87

98
jobs:
109
release:

0 commit comments

Comments
 (0)