Skip to content

Commit 6e65797

Browse files
committed
ci: update
1 parent 24c4406 commit 6e65797

File tree

2 files changed

+37
-34
lines changed

2 files changed

+37
-34
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v**'
6+
- 'v*'
77

88
jobs:
99
release:
@@ -13,11 +13,11 @@ jobs:
1313
with:
1414
fetch-depth: 0
1515

16-
- uses: actions/setup-node@v3
16+
- name: Set node
17+
uses: actions/setup-node@v3
1718
with:
18-
node-version: '16'
19-
registry-url: https://registry.npmjs.org/
19+
node-version: 16
2020

21-
- run: npx conventional-github-releaser -p angular
21+
- run: npx changelogithub
2222
env:
23-
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.GITHUB_TOKEN}}
23+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/unit-test.yml

Lines changed: 31 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,48 @@ on:
77
branches: [main]
88

99
jobs:
10-
test:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Set node
15+
uses: actions/setup-node@v3
16+
with:
17+
node-version: 16.x
18+
19+
- name: Setup
20+
run: npm i -g @antfu/ni
21+
22+
- name: Install
23+
run: nci
24+
25+
- name: Lint
26+
run: nr lint
27+
28+
unit_test:
29+
runs-on: ${{ matrix.os }}
30+
1131
strategy:
1232
matrix:
1333
os: [ubuntu-latest, windows-latest]
14-
node-version: [14.x, 16.x]
34+
node: [14.19.0, 16.x, 18]
1535
fail-fast: false
1636

17-
runs-on: ${{ matrix.os }}
18-
1937
steps:
2038
- uses: actions/checkout@v3
21-
22-
- uses: actions/setup-node@v3
39+
- name: Set node ${{ matrix.node }}
40+
uses: actions/setup-node@v3
2341
with:
24-
node-version: ${{ matrix.node-version }}
42+
node-version: ${{ matrix.node }}
2543

26-
- name: Cache ~/.pnpm-store
27-
uses: actions/cache@v3
28-
env:
29-
cache-name: cache-pnpm-store
30-
with:
31-
path: ~/.pnpm-store
32-
key: ${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}-${{ hashFiles('**/pnpm-lock.yaml') }}
33-
restore-keys: |
34-
${{ runner.os }}-${{ matrix.node-version }}-test-${{ env.cache-name }}-
35-
${{ runner.os }}-${{ matrix.node-version }}-test-
36-
${{ runner.os }}-
37-
38-
- name: Install pnpm
39-
run: npm i -g pnpm
44+
- name: Setup
45+
run: npm i -g @antfu/ni
4046

41-
- name: Install deps
42-
run: pnpm i --frozen-lockfile
43-
44-
- name: Lint
45-
run: pnpm lint
47+
- name: Install
48+
run: nci
4649

4750
- name: Build
48-
run: pnpm build
51+
run: nr build
4952

5053
# - name: Test
51-
# run: pnpm test
54+
# run: nr test

0 commit comments

Comments
 (0)