Skip to content

Commit

Permalink
fix(build): update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sleistner committed Nov 24, 2020
1 parent 5b4d5d0 commit 0c6e1d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
name: Release

on:
push:
workflow_run:
workflows:
- "Code checks and tests"
branches:
- master
types:
- completed

jobs:
release:
Expand All @@ -15,6 +19,8 @@ jobs:
with:
node-version: 12.x
- run: npm install
- name: Run build
run: npm run build
- uses: cycjimmy/semantic-release-action@master
id: semantic
with:
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"build": "npm run clean && npm run build:compile && npm run build:copy",
"build:compile": "tsc -p tsconfig.build.json",
"build:copy": "cp LICENSE README.md package.json dist/",
"clean": "rimraf ./dist",
"prepare": "npm test && npm run lint && npm run build"
"clean": "rimraf ./dist"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 0c6e1d2

Please sign in to comment.