Skip to content

Commit

Permalink
feat: add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixeladed committed Aug 19, 2020
1 parent 58216a8 commit 50f66ac
Show file tree
Hide file tree
Showing 7 changed files with 3,304 additions and 140 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/bump-version.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/create-release.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/publish-package.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release

on:
push:
branches:
- master

jobs:
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Begin CI...
uses: actions/checkout@v2
- name: Use Node 12
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Use cached node_modules
uses: actions/cache@v1
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
nodeModules-
- name: Install dependencies
run: yarn install --frozen-lockfile
env:
CI: true
- name: Lint
run: yarn lint
env:
CI: true
- name: Test
run: yarn test --ci --coverage --maxWorkers=2
env:
CI: true
release:
name: Release package
needs: unit-tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on: [push]

jobs:
build:
unit-tests:
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"devDependencies": {
"flush-promises": "^1.0.2",
"husky": "^4.2.5",
"semantic-release": "^17.1.1",
"tsdx": "^0.13.2",
"tslib": "^2.0.1",
"typescript": "^3.9.7"
Expand Down
Loading

0 comments on commit 50f66ac

Please sign in to comment.