build: use js to gen zip #5
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: | |
- main | |
paths: | |
- '*.cjs' | |
- '*.json' | |
- '*.ts' | |
- 'src/**' | |
pull_request: | |
branches: | |
- main | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
jobs: | |
lint_and_build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: latest | |
- name: Install node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm run lint | |
- run: pnpm run build |