Skip to content

Commit 0c6e1d2

Browse files
committed
fix(build): update release workflow
1 parent 5b4d5d0 commit 0c6e1d2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/release.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
name: Release
22

33
on:
4-
push:
4+
workflow_run:
5+
workflows:
6+
- "Code checks and tests"
57
branches:
68
- master
9+
types:
10+
- completed
711

812
jobs:
913
release:
@@ -15,6 +19,8 @@ jobs:
1519
with:
1620
node-version: 12.x
1721
- run: npm install
22+
- name: Run build
23+
run: npm run build
1824
- uses: cycjimmy/semantic-release-action@master
1925
id: semantic
2026
with:

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@
1414
"build": "npm run clean && npm run build:compile && npm run build:copy",
1515
"build:compile": "tsc -p tsconfig.build.json",
1616
"build:copy": "cp LICENSE README.md package.json dist/",
17-
"clean": "rimraf ./dist",
18-
"prepare": "npm test && npm run lint && npm run build"
17+
"clean": "rimraf ./dist"
1918
},
2019
"repository": {
2120
"type": "git",

0 commit comments

Comments
 (0)