Skip to content

Commit

Permalink
chore: add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovalskyi authored Mar 7, 2023
1 parent e399ebd commit 23230f1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: release

on:
push:
branches:
- alpha
- beta
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm test

publish:
runs-on: ubuntu-latest
needs:
- test
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run semantic-release --if-present
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_READ_WRITE_TOKEN }}

0 comments on commit 23230f1

Please sign in to comment.