Skip to content

Commit 14aac2c

Browse files
authored
Create npm-publish.yml
1 parent dd33a6f commit 14aac2c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CD
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ master ]
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v1
17+
- uses: actions/setup-node@v1
18+
with:
19+
node-version: 10
20+
- run: npm install
21+
- uses: JS-DevTools/npm-publish@v1
22+
with:
23+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)