From b7f5311523234c34b648417db8d6c65b7fa84626 Mon Sep 17 00:00:00 2001 From: Joey Peter Date: Wed, 27 Mar 2024 19:30:10 +0100 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 9486575..805a429 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -4,9 +4,6 @@ name: Node.js CI on: - push: - branches: - - main pull_request: branches: - main @@ -14,25 +11,19 @@ on: jobs: build: - runs-on: windows-latest - strategy: - matrix: - node-version: [14.x, 16.x, 18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Upgrade NPM run: npm install -g npm - name: Install TSC run: npm install -g typescript - name: copy-config - run: cp config.example.json config.json + run: cp src/main/json/config.example.json src/main/json/config.json - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} + node-version: latest cache: 'npm' - run: npm ci - run: tsc --build - - run: npm run css-build