Skip to content

Commit

Permalink
Remove explicit node version for workbench
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 committed Apr 22, 2022
1 parent 061456c commit 201d728
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/sql-workbench-test-and-build-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,16 @@ jobs:
ref: ${{ env.OPENSEARCH_VERSION }}
path: sql/OpenSearch-Dashboards

- name: Get node and yarn versions
id: versions_step
run: |
echo "::set-output name=node_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
echo "::set-output name=yarn_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.yarn).match(/[.0-9]+/)[0]")"
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '14.18.2'
node-version: ${{ steps.versions_step.outputs.node_version }}

- name: Move Workbench to Plugins Dir
run: |
Expand Down
4 changes: 0 additions & 4 deletions workbench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1"
},
"engines": {
"node": "14.18.2",
"yarn": "^1.21.1"
},
"resolutions": {
"**/@types/node": "10.12.27",
"@types/react": "16.3.14",
Expand Down

0 comments on commit 201d728

Please sign in to comment.