mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
chore: 🚀 调整github action中设置pnpm环境的配置
This commit is contained in:
parent
7aa21b0baa
commit
81047c708b
16
.github/workflows/alipay.yml
vendored
16
.github/workflows/alipay.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- shell: bash
|
||||
env:
|
||||
TOOLID: ${{ secrets.ALI_TOOL_ID }}
|
||||
@ -37,14 +37,16 @@ jobs:
|
||||
}' > .minicirc
|
||||
fi
|
||||
|
||||
- name: Install pnpm
|
||||
run: corepack enable
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'pnpm'
|
||||
node-version: 18
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 9
|
||||
run_install: false
|
||||
|
||||
- name: upload
|
||||
run: |
|
||||
|
||||
14
.github/workflows/deploy-site-gitee.yml
vendored
14
.github/workflows/deploy-site-gitee.yml
vendored
@ -12,13 +12,17 @@ jobs:
|
||||
- name: Checkout 🛎️
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pnpm
|
||||
run: corepack enable
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'pnpm'
|
||||
node-version: 18
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 9
|
||||
run_install: false
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
4
.github/workflows/npm-publish.yml
vendored
4
.github/workflows/npm-publish.yml
vendored
@ -9,10 +9,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
registry-url: https://registry.npmjs.org
|
||||
|
||||
16
.github/workflows/oss.yml
vendored
16
.github/workflows/oss.yml
vendored
@ -11,16 +11,18 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install pnpm
|
||||
run: corepack enable
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'pnpm'
|
||||
node-version: 18
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 9
|
||||
run_install: false
|
||||
- name: Install Dependencies and Build Docs
|
||||
run: |
|
||||
pnpm install
|
||||
|
||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: 获取当前和上一个标签
|
||||
id: get_tags
|
||||
|
||||
16
.github/workflows/weixin.yml
vendored
16
.github/workflows/weixin.yml
vendored
@ -9,7 +9,7 @@ jobs:
|
||||
upload:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- shell: bash
|
||||
env:
|
||||
PRIVATE_KEY: ${{ secrets.MP_PRIVATE_KEY }}
|
||||
@ -41,14 +41,16 @@ jobs:
|
||||
}' > .minicirc
|
||||
fi
|
||||
|
||||
- name: Install pnpm
|
||||
run: corepack enable
|
||||
|
||||
- uses: actions/setup-node@v3
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '18'
|
||||
cache: 'pnpm'
|
||||
node-version: 18
|
||||
|
||||
- uses: pnpm/action-setup@v4
|
||||
name: Install pnpm
|
||||
with:
|
||||
version: 9
|
||||
run_install: false
|
||||
|
||||
- name: upload
|
||||
run: |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user