Skip to content

Commit b9addc1

Browse files
authored
🔧 Automate npm publish with GitHub Action (#125)
1 parent e22e21a commit b9addc1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/npm-publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: NPM Publish
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
jobs:
7+
npm-publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-node@v2
12+
with:
13+
node-version: '14'
14+
- name: Install dependencies 📦
15+
run: yarn
16+
- name: Publish package to NPM 🚀
17+
env:
18+
NPM_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
19+
run: npm publish --token=${{ env.NPM_TOKEN }}

0 commit comments

Comments
 (0)