Skip to content

Commit 248aa29

Browse files
committed
Merge branch 'master' into dev
2 parents 4b04007 + 1e7f226 commit 248aa29

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/npm-publish.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# https://github.com/marketplace/actions/publish-to-npm
2+
3+
name: npm-publish
4+
on:
5+
push:
6+
branches:
7+
- master # Change this to your default branch
8+
jobs:
9+
npm-publish:
10+
name: npm-publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@master
15+
- name: Set up Node.js
16+
uses: actions/setup-node@master
17+
with:
18+
node-version: 10.0.0
19+
- name: Publish if version has been updated
20+
uses: pascalgn/npm-publish-action@06e0830ea83eea10ed4a62654eeaedafb8bf50fc
21+
with: # All of theses inputs are optional
22+
commit_pattern: "^Release (\\S+)"
23+
workspace: "."
24+
env: # More info about the environment variables in the README
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
26+
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings

0 commit comments

Comments
 (0)