From eef5135bc446d9a4a0a98c5dc931a0077ff7bb3c Mon Sep 17 00:00:00 2001 From: Hendra Gunawan <48410066+JadlionHD@users.noreply.github.com> Date: Fri, 6 Sep 2024 01:13:54 +0700 Subject: [PATCH] fix: test github actions --- .github/workflows/release.yml | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eeec10f..226bd31 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Build and Release React App +name: Build React on: release: @@ -8,19 +8,21 @@ jobs: build: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 + strategy: + matrix: + node-version: [20.x] - - name: Set up Node.js - uses: actions/setup-node@v3 + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 with: - node-version: "20" - + node-version: ${{ matrix.node-version }} + cache: "npm" - name: Install dependencies run: npm install - - name: Build the app + - name: Build Apps run: npm run build - name: Compress build files