ci: revise workflows to use .nvmrc (node 18) (#1290)

This commit is contained in:
hehe
2023-03-04 14:07:09 +08:00
committed by GitHub
parent b6480bf8a6
commit 693e7b204b
9 changed files with 36 additions and 80 deletions
+3 -6
View File
@@ -25,11 +25,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- name: Use Node.js
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
node-version-file: '.nvmrc'
registry-url: https://npm.pkg.github.com
scope: '@toeverything'
cache: 'pnpm'
@@ -47,8 +45,7 @@ jobs:
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- run: pnpm i --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}