update build flow #242
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: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/[email protected] | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/[email protected] | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: run install | |
uses: pnpm/[email protected] | |
with: | |
version: 6 # local version is 7 but it's not supported by the action, this is why the next line we use no-frozen-lockfile | |
- run: pnpm install --no-frozen-lockfile | |
- run: pnpm run build |