mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 14:50:48 +08:00
feat: 更新 setup-node-environment.yml,添加第二个作业以检查 Node 和 PNPM 版本
This commit is contained in:
33
.github/workflows/setup-node-environment.yml
vendored
33
.github/workflows/setup-node-environment.yml
vendored
@ -20,15 +20,34 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: before
|
- name: before
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x;
|
||||||
which pnpm || true
|
which pnpm || true;
|
||||||
node -v
|
node -v;
|
||||||
|
|
||||||
- uses: yanhao98/composite-actions/setup-node-environment@main
|
- uses: yanhao98/composite-actions/setup-node-environment@main
|
||||||
|
|
||||||
- name: Check Node and PNPM versions
|
- name: Check Node and PNPM versions
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x;
|
||||||
which pnpm
|
which pnpm;
|
||||||
node -v
|
node -v;
|
||||||
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;
|
||||||
|
Reference in New Issue
Block a user