Skip to content

Commit 0edfe00

Browse files
authored
ci: semantic-release setup (#47)
1 parent 52dafe0 commit 0edfe00

File tree

3 files changed

+6479
-360
lines changed

3 files changed

+6479
-360
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- next
7+
- beta
8+
- "*.x" # maintenance releases such as 15.x
9+
10+
jobs:
11+
release:
12+
name: release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
- run: npm ci
20+
- run: npm run build
21+
- run: npx semantic-release
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
NPM_TOKEN: ${{ secrets.PROBOTBOT_NPM_TOKEN }}

0 commit comments

Comments
 (0)