Merge branch 'main' into dev #6
Workflow file for this run
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 | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
cache: pnpm | |
- name: Install | |
run: pnpm install | |
- name: Lint | |
run: pnpm run lint | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.17.0 | |
cache: pnpm | |
- name: Install | |
run: pnpm install | |
- name: Build | |
run: pnpm build | |
- name: Build Extension | |
run: pnpm pack:crx && pnpm pack:zip | |
- name: Upload Zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: BewlyBewly Zip | |
path: extension.zip | |
- name: Upload Crx | |
uses: actions/upload-artifact@v3 | |
with: | |
name: BewlyBewly Crx | |
path: extension.crx |