diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f7700e50..d2893836 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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