Skip to content

Commit b78779a

Browse files
committed
chore: add semantic release via github actions
1 parent 3a7b977 commit b78779a

File tree

2 files changed

+758
-718
lines changed

2 files changed

+758
-718
lines changed

.github/workflows/release.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
on:
3+
workflow_run:
4+
workflows: ['tests']
5+
branches: [main]
6+
types:
7+
- completedname: Release
8+
push:
9+
branches:
10+
- master
11+
jobs:
12+
release:
13+
name: Release
14+
runs-on: ubuntu-18.04
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v1
20+
with:
21+
node-version: 12
22+
- name: Install dependencies
23+
run: npm ci
24+
- name: Release
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
run: npx semantic-release

0 commit comments

Comments
 (0)