Skip to content

Commit

Permalink
use node version from .nvmrc in ci (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
jshawl authored Feb 22, 2024
1 parent 8ea46a5 commit 6f0e7cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ jobs:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3

- name: 🤝 Set Node version from .nvmrc
run: echo NVMRC=`cat .nvmrc` >> $GITHUB_ENV

- name: ⎔ Setup node
# sets up the .npmrc file to publish to npm
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: ${{ env.NVMRC }}
registry-url: "https://registry.npmjs.org"

- name: 📥 Download deps
uses: bahmutov/npm-install@v1
Expand Down

0 comments on commit 6f0e7cc

Please sign in to comment.