From 7a19ece8dbfbd341da4fdbfa751e49d340d7e58e Mon Sep 17 00:00:00 2001 From: jhen Date: Sat, 22 Jul 2023 09:13:42 +0800 Subject: [PATCH] Update GitHub Actions deps & setup cache --- .github/workflows/main.yml | 15 +++++++++------ .github/workflows/release.yml | 10 ++++++---- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 22f9098e..ca535834 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,10 +10,11 @@ jobs: build-test-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x + cache: 'yarn' - name: Setup run: sudo apt-get install -y libgbm-dev - name: Test @@ -26,10 +27,11 @@ jobs: build-test-macos: runs-on: macOS-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x + cache: 'yarn' - name: Test run: | yarn @@ -40,10 +42,11 @@ jobs: build-test-windows: runs-on: windows-2022 steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x + cache: 'yarn' - name: Test shell: bash run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 08612e68..76a420e8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,10 +6,11 @@ jobs: release-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x + cache: 'yarn' - name: Package run: | yarn @@ -24,10 +25,11 @@ jobs: release-windows: runs-on: windows-2022 steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3.7.0 with: node-version: 18.x + cache: 'yarn' - name: Package shell: bash run: |