Skip to content

Commit

Permalink
Fix Yarn version in GitHub actions
Browse files Browse the repository at this point in the history
Fixes the Yarn version used in the release workflow.

Signed-off-by: Eva Millán <[email protected]>
  • Loading branch information
evamillan authored and dlumbrer committed Apr 11, 2023
1 parent 0ccc3c5 commit c48ac61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
id: versions
run: |
echo "::set-output name=node_version::$(node -p "(require('./osd/package.json').engines.node).match(/[.0-9]+/)[0]")"
echo "::set-output name=yarn_version::$(node -p "(require('./osd/package.json').engines.yarn).match(/[.0-9]+/)[0]")"
echo "::set-output name=yarn_version::$(node -p "require('./osd/package.json').engines.yarn")"
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: ${{ steps.versions.outputs.node_version }}
- name: Setup yarn
run: |
npm uninstall -g yarn
echo "Installing yarn ${{ steps.versions_step.outputs.yarn_version }}"
echo "Installing yarn ${{ steps.versions.outputs.yarn_version }}"
npm i -g yarn@${{ steps.versions.outputs.yarn_version }}
- name: Move plugin to OpenSearch Dashboards folder
run: |
Expand Down

0 comments on commit c48ac61

Please sign in to comment.