Skip to content

Commit

Permalink
update node.js.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
HedwigO committed Dec 4, 2023
1 parent 1af5225 commit b7e4a18
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,28 @@ name: Node.js CI

on:
push:
branches: [ master ]
branches: [ 'master' ]
pull_request:
branches: [ master ]
branches: [ 'master' ]

jobs:
build:
runs-on: self-hosted
runs-on: ubuntu-latest

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

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: |
npm i
cd front-end
npm i
npm run build
npm ci
npm run build --if-present
Expand Down

0 comments on commit b7e4a18

Please sign in to comment.