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/checkout@v4.2.2 | |
- name: Checkout submodules | |
run: git submodule update --init --recursive | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4.1.0 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: run install | |
uses: pnpm/action-setup@v4.0.0 | |
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 |