Skip to content

Use corrent Node and Yarn version in Release workflow #112

Use corrent Node and Yarn version in Release workflow

Use corrent Node and Yarn version in Release workflow #112

name: Pull Request Build & Test
on:
pull_request:
workflow_dispatch:
jobs:
build-and-test:
name: PR Build & Test
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Enable Corepack
run: corepack enable
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: yarn
node-version-file: .nvmrc
- name: Install Dependencies
run: yarn install --immutable
- name: Lint
run: yarn lint
- name: Test
run: yarn test
- name: Build
run: yarn build