We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fc7ae4 commit 2bd0b86Copy full SHA for 2bd0b86
1 file changed
.github/workflows/dashboards-reports-test-and-build-workflow.yml
@@ -23,10 +23,15 @@ jobs:
23
ref: ${{ env.OPENSEARCH_VERSION }}
24
path: dashboards-reports/OpenSearch-Dashboards
25
26
- - name: Setup Node
27
- uses: actions/setup-node@v1
28
- with:
29
- node-version: "10.24.1"
+ - name: Get node version
+ id: versions_step
+ run:
+ echo "::set-output name=node_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
30
+ - name: Setup Node
31
+ uses: actions/setup-node@v1
32
+ with:
33
+ node-version: ${{ steps.versions_step.outputs.node_version }}
34
+ registry-url: 'https://registry.npmjs.org'
35
36
- name: Move Dashboards Reports to Plugins Dir
37
run: mv dashboards-reports OpenSearch-Dashboards/plugins/${{ env.PLUGIN_NAME }}
0 commit comments