chore: update dependencies #24
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: Generate pnpm-lock.yaml | |
on: | |
push: | |
branches: | |
- main # ๆ่ ไฝ ๅธๆ่งฆๅ็ๅๆฏ | |
pull_request: | |
branches: | |
- main # ๆ่ ไฝ ๅธๆ่งฆๅ็ๅๆฏ | |
jobs: | |
install-dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20' # ่ฎพ็ฝฎไฝ ้่ฆ็ Node.js ็ๆฌ๏ผๆ่ ไฝฟ็จ .nvmrc ้ ็ฝฎ | |
- name: Install pnpm | |
run: | | |
npm install -g pnpm # ๅฎ่ฃ pnpm | |
- name: Install dependencies and generate pnpm-lock.yaml | |
run: | | |
pnpm install --no-frozen-lockfile # ่ฟไผ่ชๅจ็ๆ pnpm-lock.yaml | |
- name: Commit pnpm-lock.yaml | |
run: | | |
git config --global user.name "Allen Zhang" | |
git config --global user.email "[email protected]" | |
git add . | |
git commit -m "feat: update pnpm-lock.yaml" || echo "No changes to commit" | |
git push |