chore: update #424
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 Webapp | |
on: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Init webapp | |
working-directory: ./web | |
run: | | |
npx pnpm i | |
- name: Build webapp | |
working-directory: ./web | |
run: | | |
npx pnpm build | |
- name: Upload build artifact | |
uses: actions/[email protected] | |
with: | |
name: dist | |
path: ./web/dist |