Skip to content

Commit 32f5847

Browse files
committed
ci: use node 22 and enable corepack
1 parent 6fa4b7d commit 32f5847

File tree

5 files changed

+33
-15
lines changed

5 files changed

+33
-15
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,20 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Enable Corepack
21+
run: corepack enable
22+
1823
- name: Setup Node.js environment
19-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2025
with:
21-
node-version: "20"
26+
node-version: "22"
2227
cache: "yarn"
2328

2429
- name: Install dependencies
25-
run: yarn install --immutable --prefer-offline
30+
run: yarn install --immutable
2631

2732
- name: Check types
2833
run: yarn run typecheck

.github/workflows/is-compatible.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,23 @@ jobs:
55
compatibilitycheck:
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
8+
- name: Checkout code
9+
uses: actions/checkout@v3
10+
11+
- name: Enable Corepack
12+
run: corepack enable
13+
914
- name: Setup Node.js environment
10-
uses: actions/setup-node@v3
15+
uses: actions/setup-node@v4
1116
with:
12-
node-version: '20'
13-
cache: 'yarn'
17+
node-version: "22"
18+
cache: "yarn"
19+
1420
- name: Install dependencies
15-
run: yarn install --immutable --prefer-offline
21+
run: yarn install --immutable
22+
1623
- name: Build plugin
1724
run: yarn run build
25+
1826
- name: Compatibility check
1927
run: npx @grafana/levitate@latest is-compatible --path src/module.ts --target @grafana/data,@grafana/ui,@grafana/runtime

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ jobs:
1111
env:
1212
GRAFANA_ACCESS_POLICY_TOKEN: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
1313
steps:
14-
- uses: actions/checkout@v3
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
17+
- name: Enable Corepack
18+
run: corepack enable
19+
1520
- name: Setup Node.js environment
16-
uses: actions/setup-node@v3
21+
uses: actions/setup-node@v4
1722
with:
18-
node-version: "20"
23+
node-version: "22"
1924
cache: "yarn"
2025

2126
- name: Setup Go environment
@@ -24,7 +29,7 @@ jobs:
2429
go-version: "1.22"
2530

2631
- name: Install dependencies
27-
run: yarn install --immutable --prefer-offline
32+
run: yarn install --immutable
2833

2934
- name: Build and test frontend
3035
run: yarn run build

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Yarn
2+
.pnp.*
23
.yarn/*
3-
!.yarn/cache
44
!.yarn/patches
55
!.yarn/plugins
66
!.yarn/releases

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ services:
88
context: ./.config
99
args:
1010
grafana_image: ${GRAFANA_IMAGE:-grafana-enterprise}
11-
grafana_version: ${GRAFANA_VERSION:-10.0.3}
11+
grafana_version: ${GRAFANA_VERSION:-12.0.0}
1212
ports:
1313
- 3000:3000/tcp
1414
volumes:

0 commit comments

Comments
 (0)