Skip to content

Commit b9b11a8

Browse files
authored
Run release jobs on production branch (#22)
1 parent f95f17a commit b9b11a8

File tree

3 files changed

+2672
-18
lines changed

3 files changed

+2672
-18
lines changed

.github/workflows/release.js.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: npm publish
2+
3+
on:
4+
push:
5+
branches: [ production ]
6+
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: '16.x'
15+
cache: 'npm'
16+
- run: npm ci
17+
- run: npm run build --if-present
18+
- run: npm test
19+
- run: npm run release --ci
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)