Skip to content

Commit

Permalink
Set workflow node-version from nvmrc (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
penx committed Feb 5, 2023
1 parent e2741e8 commit 615c53b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Get Node version
id: node_version
run: echo "name=$(cat .nvmrc)" >> $GITHUB_OUTPUT
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT

- name: Setup Node
uses: actions/setup-node@v3
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get Node version
id: node_version
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: '${{ steps.node_version.outputs.NVMRC }}'
- name: Install dependencies
run: yarn
- name: Build Adapter
Expand Down

0 comments on commit 615c53b

Please sign in to comment.