Skip to content

Commit ec8c826

Browse files
committed
ci: github actions to publish npm releases
1 parent 69a9a84 commit ec8c826

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: publish
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
name: Publish to npm 🚢📦
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@master
12+
- uses: actions/setup-node@master
13+
with:
14+
node-version: 12.x
15+
- run: npx yarn bootstrap
16+
- uses: JS-DevTools/npm-publish@v1
17+
with:
18+
token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)