From 7c58ef3294c516623264dba7782469044521db22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Sat, 12 Oct 2024 15:18:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=20setup-node-environ?= =?UTF-8?q?ment.yml=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=AC=AC=E4=BA=8C=E4=B8=AA?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E4=BB=A5=E6=A3=80=E6=9F=A5=20Node=20?= =?UTF-8?q?=E5=92=8C=20PNPM=20=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/setup-node-environment.yml | 33 +++++++++++++++----- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/setup-node-environment.yml b/.github/workflows/setup-node-environment.yml index 250aa80..e6cf8fe 100644 --- a/.github/workflows/setup-node-environment.yml +++ b/.github/workflows/setup-node-environment.yml @@ -20,15 +20,34 @@ jobs: steps: - name: before run: | - set -x - which pnpm || true - node -v + set -x; + which pnpm || true; + node -v; - uses: yanhao98/composite-actions/setup-node-environment@main - name: Check Node and PNPM versions run: | - set -x - which pnpm - node -v - pnpm node -v + set -x; + which pnpm; + node -v; + pnpm node -v; + + job-2: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + - name: before + run: | + set -x; + sed -i '/use-node-version/d' .npmrc + node -v; + + - uses: yanhao98/composite-actions/setup-node-environment@main + + - name: Check Node and PNPM versions + run: | + set -x; + which pnpm; + node -v; + pnpm node -v;