Skip to content

Commit

Permalink
Support Node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinwcyu committed Oct 17, 2023
1 parent ef96d96 commit d037cef
Show file tree
Hide file tree
Showing 4 changed files with 926 additions and 3,992 deletions.
8 changes: 4 additions & 4 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ platform:

steps:
- name: initialize
image: grafana/grafana-plugin-ci:1.5.1-alpine
image: grafana/grafana-plugin-ci:1.9.0
commands:
- mkdir -p bin
- curl -fL -o bin/grabpl https://grafana-downloads.storage.googleapis.com/grafana-build-pipeline/v0.5.27/grabpl
Expand All @@ -21,16 +21,16 @@ steps:
- rm -rf node_modules/@grafana/data/node_modules

- name: build-and-test-frontend
image: grafana/grafana-plugin-ci:1.5.1-alpine
image: grafana/grafana-plugin-ci:1.9.0
commands:
- yarn eslint ./src --ext .js,.jsx,.ts,.tsx
- yarn build
- yarn test-ci
- yarn test:ci
depends_on:
- initialize

---
kind: signature
hmac: 4f7eaf8336ad46a783436864368ed391cb4aade800bf4cc586df0c9cbfcc97e3
hmac: 3af0c951d64c787596492c1b2725a42003cefa0aca2f483dd111159c454c720d

...
8 changes: 4 additions & 4 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:

- name: Setup .npmrc file for NPM registry
if: steps.version_check.outputs.changed == 'true'
uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
Expand All @@ -48,9 +48,9 @@ jobs:

- name: Setup .npmrc file for GitHub Packages
if: steps.version_check.outputs.changed == 'true'
uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version-file: '.nvmrc'
registry-url: 'https://npm.pkg.github.com'
scope: '@grafana'

Expand Down
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"typecheck": "tsc -p ./tsconfig.build.json",
"test": "jest --notify --watch",
"test:coverage": "jest --coverage",
"test-ci": "grafana-toolkit plugin:test"
"test:ci": "jest"
},
"files": [
"dist"
Expand All @@ -31,8 +31,8 @@
},
"devDependencies": {
"@grafana/data": "9.3.2",
"@grafana/eslint-config": "^6.0.1",
"@grafana/runtime": "9.3.2",
"@grafana/toolkit": "9.3.2",
"@grafana/ui": "9.3.2",
"@rollup/plugin-node-resolve": "^15.0.1",
"@testing-library/jest-dom": "5.16.5",
Expand All @@ -43,7 +43,12 @@
"@types/node": "16.18.6",
"@types/react": "17.0.42",
"@types/react-dom": "17.0.14",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"esbuild": "^0.16.2",
"eslint": "^8.49.0",
"eslint-plugin-jsdoc": "^46.7.0",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"jest": "27.5.1",
"node-notifier": "^10.0.1",
"react": "17.0.2",
Expand Down
Loading

0 comments on commit d037cef

Please sign in to comment.