Skip to content

Commit 23fd9fe

Browse files
authored
Bugfix: Header version causing errors (#162)
* Fixed header, `latest-version` relied on Node API's * format, fixed await * test ci * Fix CI aswell, f it * fix ci * fix ci * test
1 parent 74e12da commit 23fd9fe

File tree

5 files changed

+75
-191
lines changed

5 files changed

+75
-191
lines changed

.github/workflows/code-quality.yml

Lines changed: 27 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,63 +7,57 @@ jobs:
77
format:
88
name: Format
99
runs-on: ubuntu-22.04
10-
strategy:
11-
matrix:
12-
node-version: latest
1310
steps:
1411
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 22
1515
- name: Install pnpm
1616
uses: pnpm/action-setup@v4
17-
with:
18-
version: 10
1917
- name: Use Node.js ${{ matrix.node-version }}
2018
uses: actions/setup-node@v4
2119
with:
2220
node-version: ${{ matrix.node-version }}
23-
cache: 'pnpm'
21+
cache: 'pnpm'
2422
- name: Install dependencies
2523
run: pnpm install --frozen-lockfile
2624
- name: Run Formatter
2725
run: pnpm format:check
2826
test:
29-
name: Format
30-
runs-on: ubuntu-22.04
31-
strategy:
32-
matrix:
33-
node-version: latest
34-
steps:
35-
- uses: actions/checkout@v4
36-
- name: Install pnpm
37-
uses: pnpm/action-setup@v4
38-
with:
39-
version: 10
40-
- name: Use Node.js ${{ matrix.node-version }}
41-
uses: actions/setup-node@v4
42-
with:
43-
node-version: ${{ matrix.node-version }}
44-
cache: 'pnpm'
45-
- name: Install dependencies
46-
run: pnpm install --frozen-lockfile
47-
- name: Run tests
48-
run: pnpm test
27+
name: Test
28+
runs-on: ubuntu-22.04
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: 22
34+
- name: Install pnpm
35+
uses: pnpm/action-setup@v4
36+
- name: Use Node.js ${{ matrix.node-version }}
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: ${{ matrix.node-version }}
40+
cache: 'pnpm'
41+
- name: Install dependencies
42+
run: pnpm install --frozen-lockfile
43+
- name: Run tests
44+
run: pnpm test
4945

5046
build:
51-
name: Format
47+
name: Build
5248
runs-on: ubuntu-22.04
53-
strategy:
54-
matrix:
55-
node-version: latest
5649
steps:
5750
- uses: actions/checkout@v4
51+
- uses: actions/setup-node@v4
52+
with:
53+
node-version: 22
5854
- name: Install pnpm
5955
uses: pnpm/action-setup@v4
60-
with:
61-
version: 10
6256
- name: Use Node.js ${{ matrix.node-version }}
6357
uses: actions/setup-node@v4
6458
with:
6559
node-version: ${{ matrix.node-version }}
66-
cache: 'pnpm'
60+
cache: 'pnpm'
6761
- name: Install dependencies
6862
run: pnpm install --frozen-lockfile
6963
- name: Build project

.github/workflows/publish-package.yml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,28 @@ on:
77

88
jobs:
99
publish:
10-
name: Format
11-
runs-on: ubuntu-22.04
12-
strategy:
13-
matrix:
14-
node-version: latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- name: Install pnpm
18-
uses: pnpm/action-setup@v4
19-
with:
20-
version: 10
21-
- name: Use Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v4
23-
with:
24-
node-version: ${{ matrix.node-version }}
25-
cache: 'pnpm'
26-
- name: Install dependencies
27-
run: pnpm install --frozen-lockfile
28-
- name: Create Release Pull Request or Publish to npm
29-
id: changesets
30-
uses: changesets/action@v1
31-
with:
32-
publish: pnpm changeset publish
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
10+
name: Format
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: 22
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'pnpm'
25+
- name: Install dependencies
26+
run: pnpm install --frozen-lockfile
27+
- name: Create Release Pull Request or Publish to npm
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
publish: pnpm changeset publish
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)