Skip to content

Commit 9263102

Browse files
committed
ci: simplify and remove duplicates
1 parent b008707 commit 9263102

File tree

1 file changed

+13
-25
lines changed

1 file changed

+13
-25
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,29 @@ on:
77
paths-ignore:
88
- '**.md'
99
tags:
10-
- v*
10+
- '*'
1111

1212
jobs:
1313
lint:
1414
runs-on: ubuntu-latest
1515
if: "!contains(github.event.head_commit.message, '#skip-lint')"
1616
steps:
17-
- name: Checkout
18-
uses: actions/checkout@v2
17+
- uses: actions/checkout@v2
1918

20-
- name: Install
21-
run: npm ci
19+
- run: npm ci
2220

23-
- name: Lint
24-
run: npm run lint
21+
- run: npm run lint
2522

2623
build:
2724
runs-on: ubuntu-latest
2825
needs: lint
2926
if: "!contains(github.event.head_commit.message, '#skip-build')"
3027
steps:
31-
- name: Checkout
32-
uses: actions/checkout@v2
28+
- uses: actions/checkout@v2
3329

34-
- name: Install
35-
run: npm ci
30+
- run: npm ci
3631

37-
- name: Build
38-
run: npm run build
32+
- run: npm run build
3933

4034
release:
4135
runs-on: ubuntu-latest
@@ -51,21 +45,15 @@ jobs:
5145
runs-on: ubuntu-latest
5246
needs: release
5347
steps:
54-
- name: Checkout
55-
uses: actions/checkout@v2
56-
with:
57-
persist-credentials: false
58-
fetch-depth: 0
59-
48+
- uses: actions/checkout@v2
49+
6050
- uses: actions/setup-node@v2
6151
with:
62-
node-version: "17.x"
63-
registry-url: "https://registry.npmjs.org"
52+
node-version: '17.x'
53+
registry-url: 'https://registry.npmjs.org'
6454

65-
- name: Install
66-
run: npm ci
55+
- run: npm ci
6756

68-
- name: Publish
69-
run: npm publish
57+
- run: npm publish
7058
env:
7159
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)