Skip to content

Commit

Permalink
feat: Semantic release added (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
pashidlos authored Apr 26, 2021
1 parent 4a90b01 commit 8ad91de
Show file tree
Hide file tree
Showing 4 changed files with 4,347 additions and 158 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/workflow.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: CI

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

Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node.js environment
uses: actions/[email protected]

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Unit tests
run: npm run test

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
Loading

0 comments on commit 8ad91de

Please sign in to comment.