Skip to content

Commit

Permalink
chore: init semantic release using GitHub Actions (#462)
Browse files Browse the repository at this point in the history
Co-authored-by: Max Liashuk <[email protected]>
  • Loading branch information
probil and probil authored May 18, 2020
1 parent 5e0e193 commit 554d3b9
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
release:
name: Release
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test --if-present
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

0 comments on commit 554d3b9

Please sign in to comment.