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 -5
View File
@@ -22,17 +22,15 @@ 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'
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
run: pnpm i --no-frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_AUTH_TOKEN }}