Skip to content

Commit

Permalink
Merge pull request #363 from bcgov/chore/replace-set-output-with-gith…
Browse files Browse the repository at this point in the history
…ub-variable

Use environment variable instead of deprecated set-output to set Node version
  • Loading branch information
ty2k authored May 28, 2024
2 parents cdc88bf + a3a65a1 commit ba4fc02
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test_react_component_library.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ jobs:
uses: actions/checkout@v4

- name: Read .nvmrc
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"
run: echo "GITHUB_NVMRC_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
working-directory: ./packages/react-components
id: nvm

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
node-version: $GITHUB_NVMRC_VERSION

- name: Install dependencies
run: npm install
Expand Down

0 comments on commit ba4fc02

Please sign in to comment.