Skip to content

Commit 554f5a6

Browse files
authored
👷 Sync workflow files with BetaHuhn/github-files (BetaHuhn#29)
1 parent 3b56e49 commit 554f5a6

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ jobs:
2121
run: npm ci
2222
- name: Run lint command
2323
run: npm run lint
24-
build:
25-
name: Build
24+
release:
25+
needs: [lint]
26+
name: Build and release
2627
runs-on: ubuntu-latest
2728
if: "!contains(github.event.head_commit.message, '[skip ci]')"
2829
steps:
@@ -38,22 +39,6 @@ jobs:
3839
run: npm ci
3940
- name: Run build command
4041
run: npm run build
41-
release:
42-
needs: [lint, build]
43-
name: Release
44-
runs-on: ubuntu-latest
45-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
46-
steps:
47-
- name: Checkout
48-
uses: actions/checkout@v2
49-
- name: Setup Node.js
50-
uses: actions/setup-node@v2
51-
with:
52-
node-version: 14
53-
- name: Cache node modules
54-
uses: c-hive/gha-npm-cache@v1
55-
- name: Install dependencies
56-
run: npm ci
5742
- name: Run Semantic Release
5843
run: npx semantic-release
5944
env:

0 commit comments

Comments
 (0)