Skip to content

Commit 75a1870

Browse files
committed
chore: add auto-publish ghaction
1 parent 5425ef2 commit 75a1870

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: on-push-publish-to-npm
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths:
7+
- "package.json"
8+
jobs:
9+
publish:
10+
if: github.repository_owner == 'adobe'
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: 16
17+
- run: npm install
18+
- run: npm test
19+
- uses: JS-DevTools/npm-publish@v1
20+
with:
21+
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}

0 commit comments

Comments
 (0)