Skip to content

Commit 065ceb1

Browse files
ice-chilliosclaude
andcommitted
ci: modernise workflow and fix lint for deprecation release
- Update actions/checkout and actions/setup-node to v4 (actions/cache v2 no longer functions) - Use Node 20 with built-in yarn cache - Add pull_request trigger so checks report on PRs - Commit yarn.lock so --frozen-lockfile install succeeds - Fix prettier formatting in src/migration.ts Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 8c9ed69 commit 065ceb1

3 files changed

Lines changed: 2357 additions & 12 deletions

File tree

‎.github/workflows/typescript_and_lint.yml‎

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,20 @@ on:
44
push:
55
branches:
66
- "*"
7+
pull_request:
78

89
jobs:
910
lint:
1011
runs-on: ubuntu-latest
1112
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
1415
with:
15-
node-version: "16"
16-
17-
- uses: actions/cache@v2
18-
id: yarn-cache
19-
with:
20-
path: "**/node_modules"
21-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
16+
node-version: "20"
17+
cache: yarn
2218

2319
- name: Install
24-
run: yarn install --frozen-lockfile
20+
run: yarn install --frozen-lockfile --ignore-engines
2521

2622
- name: Lint
2723
run: yarn lint

‎src/migration.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export async function showMigrationNotice(
4343
extensions.getExtension(NEW_EXTENSION_ID) !== undefined
4444
? FINISH_MESSAGE
4545
: lastShownAt === undefined
46-
? INITIAL_MESSAGE
47-
: REMINDER_MESSAGE,
46+
? INITIAL_MESSAGE
47+
: REMINDER_MESSAGE,
4848
);
4949
}
5050

0 commit comments

Comments
 (0)