Skip to content

Commit

Permalink
chore: enable semantic-release in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Guria committed Apr 15, 2021
1 parent 528654a commit 1d3e313
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,25 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 14
- name: Install dependencies
run: npm install
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -41,7 +41,8 @@
"eslint-plugin-promise": "^4.3.1",
"husky": "^6.0.0",
"jest": "^26.6.3",
"prettier": "^2.2.1"
"prettier": "^2.2.1",
"semantic-release": "^17.4.2"
},
"dependencies": {
"path-to-regexp": "^2.1.0",
Expand Down

0 comments on commit 1d3e313

Please sign in to comment.