Skip to content

Commit

Permalink
Changes workflows reading .nvmrc.
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotny committed Nov 6, 2022
1 parent f7a2bb6 commit 1543970
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@ jobs:
uses: actions/checkout@v3
- name: Validate and extract release information
id: release
uses: manovotny/[email protected]
- name: Read node version
id: nvm
run: echo "::set-output name=version::$(cat .nvmrc)"
uses: manovotny/[email protected]
- name: Set node version
uses: actions/setup-node@v3
with:
always-auth: true
node-version: ${{ steps.nvm.outputs.version }}
node-version-file: '.nvmrc'
registry-url: 'https://registry.npmjs.org'
- name: Cache node_modules
id: node-modules-cache
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ jobs:
access_token: ${{ github.token }}
- name: Checkout repo
uses: actions/checkout@v3
- name: Read node version
id: nvm
run: echo "::set-output name=version::$(cat .nvmrc)"
- name: Set node version
uses: actions/setup-node@v3
with:
node-version: ${{ steps.nvm.outputs.version }}
node-version-file: '.nvmrc'
- name: Cache node_modules
id: node-modules-cache
uses: actions/cache@v3
Expand Down

0 comments on commit 1543970

Please sign in to comment.