Skip to content

Commit b38a55f

Browse files
committed
chore(ci): Update node version and dependencies
1 parent 5eccc34 commit b38a55f

File tree

5 files changed

+3278
-2250
lines changed

5 files changed

+3278
-2250
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,24 @@ on:
1010

1111
jobs:
1212
lint:
13+
strategy:
14+
matrix:
15+
node-version: [22.x]
16+
1317
runs-on: ubuntu-latest
1418
steps:
1519
- uses: actions/checkout@v5
16-
- name: Use Node.js 16.x
20+
- name: Use Node.js ${{ matrix.node-version }}
1721
uses: actions/[email protected]
1822
with:
19-
node-version: 16.x
23+
node-version: ${{ matrix.node-version }}
2024
- name: Cache Node.js modules
2125
uses: actions/cache@v4
2226
with:
2327
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
24-
key: ${{ runner.OS }}-node-16.x-${{ hashFiles('**/yarn.lock') }}
28+
key: ${{ runner.OS }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
2529
restore-keys: |
26-
${{ runner.OS }}-node-16.x
30+
${{ runner.OS }}-node-${{ matrix.node-version }}
2731
${{ runner.OS }}-
2832
- name: Install dependencies
2933
run: yarn install --frozen-lockfile
@@ -34,7 +38,7 @@ jobs:
3438

3539
strategy:
3640
matrix:
37-
node-version: [16.x]
41+
node-version: [22.x]
3842

3943
steps:
4044
- uses: actions/checkout@v5

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on: workflow_dispatch
44

55
jobs:
66
release-bundle:
7+
strategy:
8+
matrix:
9+
node-version: [22.x]
10+
711
runs-on: ubuntu-latest
812
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
913

@@ -13,17 +17,17 @@ jobs:
1317

1418
steps:
1519
- uses: actions/checkout@v5
16-
- name: Use Node.js 16.x
20+
- name: Use Node.js ${{ matrix.node-version }}
1721
uses: actions/[email protected]
1822
with:
19-
node-version: 16.x
23+
node-version: ${{ matrix.node-version }}
2024
- name: Cache Node.js modules
2125
uses: actions/cache@v4
2226
with:
2327
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
24-
key: ${{ runner.OS }}-node-16.x-${{ hashFiles('**/yarn.lock') }}
28+
key: ${{ runner.OS }}-node-${{ matrix.node-version }}-${{ hashFiles('**/yarn.lock') }}
2529
restore-keys: |
26-
${{ runner.OS }}-node-16.x
30+
${{ runner.OS }}-node-${{ matrix.node-version }}
2731
${{ runner.OS }}-
2832
- name: Install dependencies
2933
run: yarn install --frozen-lockfile

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@
3737
"@rollup/plugin-commonjs": "^16.0.0",
3838
"@rollup/plugin-json": "^4.0.2",
3939
"@rollup/plugin-node-resolve": "^10.0.0",
40-
"@semantic-release/changelog": "^5.0.1",
41-
"@semantic-release/commit-analyzer": "^8.0.1",
42-
"@semantic-release/exec": "^5.0.0",
43-
"@semantic-release/git": "^9.0.0",
44-
"@semantic-release/npm": "^7.0.10",
45-
"@semantic-release/release-notes-generator": "^9.0.1",
40+
"@semantic-release/changelog": "^6.0.3",
41+
"@semantic-release/commit-analyzer": "^13.0.1",
42+
"@semantic-release/exec": "^7.1.0",
43+
"@semantic-release/git": "^10.0.1",
44+
"@semantic-release/npm": "^12.0.2",
45+
"@semantic-release/release-notes-generator": "^14.0.3",
4646
"@typescript-eslint/eslint-plugin": "^6.1.0",
4747
"@typescript-eslint/parser": "^6.1.0",
48-
"conventional-changelog-conventionalcommits": "^4.5.0",
48+
"conventional-changelog-conventionalcommits": "^9.1.0",
4949
"eslint": "7.12.1",
5050
"eslint-config-airbnb-base": "^14.1.0",
5151
"eslint-config-prettier": "^6.15.0",
@@ -59,7 +59,7 @@
5959
"rollup-plugin-serve": "^1.1.0",
6060
"rollup-plugin-terser": "^7.0.2",
6161
"rollup-plugin-typescript2": "^0.29.0",
62-
"semantic-release": "^17.3.8",
62+
"semantic-release": "^24.2.7",
6363
"ts-lit-plugin": "^1.1.10",
6464
"typescript": "^4.0.5",
6565
"typescript-styled-plugin": "^0.15.0",

release.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
/* eslint-disable no-template-curly-in-string */
22
module.exports = {
33
plugins: [
4-
'@semantic-release/commit-analyzer',
4+
[
5+
'@semantic-release/commit-analyzer',
6+
{
7+
preset: 'conventionalcommits',
8+
},
9+
],
510
[
611
'@semantic-release/release-notes-generator',
712
{

0 commit comments

Comments
 (0)