feat(workflows): add release workflow

This commit is contained in:
Alexander Shelepenok 2022-04-16 15:02:30 +00:00
parent d5f92ed5fe
commit 25cf13ae57

33
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,33 @@
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@v2
with:
node-version: 14.17
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run semantic-release