File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -26,21 +26,20 @@ jobs:
26
26
repository : opensearch-project/OpenSearch-Dashboards
27
27
ref : ${{ env.OPENSEARCH_DASHBOARDS_VERSION }}
28
28
path : OpenSearch-Dashboards
29
- - name : Get node and yarn versions
30
- id : versions
31
- run : |
32
- echo "::set-output name=node_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.node).match(/[.0-9]+/)[0]")"
33
- echo "::set-output name=yarn_version::$(node -p "(require('./OpenSearch-Dashboards/package.json').engines.yarn).match(/[.0-9]+/)[0]")"
34
- - name : Setup node
35
- uses : actions/setup-node@v1
29
+ - name : Setup Node
30
+ uses : actions/setup-node@v3
36
31
with :
37
- node-version : ${{ steps.versions.outputs.node_version }}
32
+ node-version-file : ' ./OpenSearch-Dashboards/.nvmrc '
38
33
registry-url : ' https://registry.npmjs.org'
39
- - name : Install correct yarn version for OpenSearch-Dashboards
34
+ - name : Install Yarn
35
+ # Need to use bash to avoid having a windows/linux specific step
36
+ shell : bash
40
37
run : |
41
- npm uninstall -g yarn
42
- echo "Installing yarn ${{ steps.versions_step.outputs.yarn_version }}"
43
- npm i -g yarn@${{ steps.versions.outputs.yarn_version }}
38
+ YARN_VERSION=$(node -p "require('./OpenSearch-Dashboards/package.json').engines.yarn")
39
+ echo "Installing yarn@$YARN_VERSION"
40
+ npm i -g yarn@$YARN_VERSION
41
+ - run : node -v
42
+ - run : yarn -v
44
43
- name : Checkout Security Analytics Dashboards plugin
45
44
uses : actions/checkout@v2
46
45
with :
You can’t perform that action at this time.
0 commit comments