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

Commit b762ae3

Browse files
authored
Create main.yml
1 parent a5f097c commit b762ae3

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: NPM Autopublish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
- uses: actions/setup-node@v1
14+
with:
15+
node-version: 12
16+
- run: yarn install
17+
- run: npm run prepublish
18+
19+
- id: publish
20+
uses: JS-DevTools/npm-publish@v1
21+
with:
22+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)