Skip to content

Commit

Permalink
ci: use Semantic Release for releases (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Johnson authored Dec 27, 2021
1 parent d24a176 commit 3ce59dc
Show file tree
Hide file tree
Showing 5 changed files with 13,716 additions and 4,979 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Update NPM
run: npm install -g npm
- run: npm ci
- run: npm run build
- run: npm test
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release

on:
push:
branches: [main, beta, alpha]

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
104 changes: 0 additions & 104 deletions CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 3ce59dc

Please sign in to comment.