Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
New: Add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisnoo committed Jul 18, 2020
1 parent b9375ad commit 94eb96d
Show file tree
Hide file tree
Showing 4 changed files with 5,814 additions and 58 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,20 @@
name: Release

on:
push:
branches:
- stable

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- uses: bahmutov/npm-install@v1

- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 10 additions & 0 deletions .releaserc.js
@@ -0,0 +1,10 @@
module.exports = {
branches: ['stable'],
tagFormat: '${version}',
plugins: [
['@semantic-release/commit-analyzer', {preset: 'eslint'}],
['@semantic-release/release-notes-generator', {preset: 'eslint'}],
'@semantic-release/github',
'@semantic-release/npm',
],
};

0 comments on commit 94eb96d

Please sign in to comment.