Switch from yarn to npm #40
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: Continuous Integration | |
on: | |
push: | |
branches: | |
- master | |
- main | |
- develop | |
pull_request: | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
name: node-${{ matrix.node }} | |
strategy: | |
matrix: | |
node: [18, 22] | |
fail-fast: false | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup Node.js ${{ matrix.node }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node }} | |
cache: "yarn" | |
- name: Install dependencies | |
run: yarn install --pure-lockfile --prefer-offline | |
- name: Validate | |
run: yarn ci | |
- name: Build | |
run: yarn build |