chore: pnpm version update #53
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: Build | |
on: | |
push: | |
branches: | |
# The branch where the project source code resides | |
# 项目源代码所在的分支 | |
- main | |
- dev | |
paths-ignore: | |
# Changes involving the following path files will not trigger the workflow | |
# 涉及以下路径文件的更改不会触发工作流 | |
- LICENSE | |
- README-cmn_CN.md | |
- README-cmn_TW.md | |
- README-jyut.md | |
- docs/** | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install | |
run: pnpm install | |
- name: Lint | |
run: pnpm run lint | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: lts/* | |
cache: pnpm | |
- name: Install | |
run: pnpm install | |
- name: Build Extension | |
run: pnpm build | |
- name: Upload Zip | |
uses: actions/[email protected] | |
with: | |
name: BewlyBewly Zip | |
path: extension | |
- name: Build Extension-Firefox | |
run: pnpm build-firefox | |
- name: Upload Zip | |
uses: actions/[email protected] | |
with: | |
name: BewlyBewly-Firefox Zip | |
path: extension-firefox |