Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support node 22 #1298

Merged
merged 2 commits into from
Nov 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
cache-dependency-path: ./.github/actions/check-labels/package-lock.json

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Setup .npmrc file for NPM registry
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
- name: Setup .npmrc file for NPM registry
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Download packed artifacts
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
- name: Setup environment
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy-to-developer-portal-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
workflow_dispatch:
inputs:
branch:
description: "Which branch to use?"
default: "main"
description: 'Which branch to use?'
default: 'main'
jobs:
deploy:
name: Deploy docs to Developer Portal Bucket
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

Expand All @@ -39,7 +39,7 @@ jobs:

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'

- name: 'Deploy to Developer Portal Bucket'
run: |
gsutil -m rsync -r -d -c ./docusaurus/website/build/ gs://staging-developer-portal/plugin-tools
gsutil -m rsync -r -d -c ./docusaurus/website/build/ gs://staging-developer-portal/plugin-tools
6 changes: 3 additions & 3 deletions .github/workflows/deploy-to-developer-portal-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'

Expand All @@ -37,7 +37,7 @@ jobs:

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v2'

- name: 'Deploy to Developer Portal Bucket'
run: |
gsutil -m rsync -r -d -c ./docusaurus/website/build/ gs://grafana-developer-portal/plugin-tools
gsutil -m rsync -r -d -c ./docusaurus/website/build/ gs://grafana-developer-portal/plugin-tools
2 changes: 1 addition & 1 deletion .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
build-docs:
needs: changes
if: ${{ needs.changes.outputs.docs == 'true' }}
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion packages/create-plugin/templates/common/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"webpack-virtual-modules": "^0.6.2"
},
"engines": {
"node": ">=20"
"node": ">=22"
},
"dependencies": {
"@emotion/css": "11.10.6",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-plugin/templates/github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: '{{ packageManagerName }}'

- name: Install dependencies
Expand Down Expand Up @@ -161,7 +161,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: '{{ packageManagerName }}'

- name: Install dev dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: '{{ packageManagerName }}'
- name: Install dependencies
run: {{ packageManagerInstallCmd }}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"playwright:all": "npx playwright test"
},
"engines": {
"node": ">=18 <=20"
"node": ">=18 <=22"
},
"peerDependencies": {
"@playwright/test": "^1.41.2"
Expand Down
Loading