Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danchitnis committed Aug 27, 2023
1 parent 85cc04d commit abe525f
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Build App

on:
push:
paths:
- "src/**"
- "public/**"
pull_request:
paths:
- "src/**"
- "public/**"
name: Yarn Build

on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [14.x, 15.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn build
- uses: actions/checkout@v2
- name: Run a one-line script
run: echo Hello, world!

- name: corepack
run: corepack enable

- name: yarn global
run: corepack prepare yarn@stable --activate

- name: Set yarn version
run: yarn set version stable

- name: install
working-directory: .
run: yarn install

- name: build
working-directory: .
run: yarn run build

0 comments on commit abe525f

Please sign in to comment.