Skip to content
This repository was archived by the owner on Nov 9, 2021. It is now read-only.

Commit 9bb9f72

Browse files
authored
Merge pull request #135 from probil/feature/semantic-release
chore: init semantic release
2 parents a2cfb5c + b52f6ad commit 9bb9f72

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
node-version: [14.x]
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- name: Install dependencies
24+
run: npm ci
25+
- name: Test
26+
run: npm run test --if-present
27+
- name: Release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
run: npx semantic-release

0 commit comments

Comments
 (0)