🐞 fix(手机模式): #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 小红书优化 | |
on: | |
push: | |
branches: ["master"] | |
paths: | |
- "packages/小红书优化/**" | |
- ".github/workflows/小红书优化.yaml" | |
- "!packages/小红书优化/README.md" | |
- "!packages/小红书优化/dist/*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: set git | |
run: | | |
git config --global core.symlinks false | |
- name: 校验 | |
uses: actions/checkout@v4 | |
- uses: volta-cli/action@v4 | |
- name: 设置Node和pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: 构建 | |
run: | | |
cd ./packages/小红书优化 | |
echo "当前目录:"$(pwd) | |
pnpm install | |
pnpm run build | |
- name: 上传附件 | |
uses: actions/upload-artifact@main | |
with: | |
name: 小红书优化 | |
path: ./packages/小红书优化/dist |