From 77da3385e82f8d67af88f02bd70962f88d01b6f2 Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Wed, 21 Aug 2024 12:29:32 +0200 Subject: [PATCH] update node version --- .../workflows/covector-version-or-publish.yml | 10 +-- .github/workflows/test.yml | 66 +++++++++---------- README.md | 12 ++-- action.yml | 2 +- 4 files changed, 45 insertions(+), 45 deletions(-) diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index 1aa15c8..ec3f0a2 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -28,7 +28,7 @@ jobs: git config --global user.email "${{ github.event.pusher.email }}" - uses: actions/setup-node@v4.0.1 with: - node-version: '16.x' + node-version: 20 registry-url: 'https://registry.npmjs.org' - uses: pnpm/action-setup@v2.4.0 name: Install pnpm @@ -60,8 +60,8 @@ jobs: if: steps.covector.outputs.commandRan == 'version' with: token: ${{ secrets.GITHUB_TOKEN }} - title: "Publish New Versions" - commit-message: "publish new versions" - labels: "version updates" - branch: "release" + title: 'Publish New Versions' + commit-message: 'publish new versions' + labels: 'version updates' + branch: 'release' body: ${{ steps.covector.outputs.change }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0fa9f0f..b9844e8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -name: "Test" +name: 'Test' on: workflow_dispatch: @@ -40,39 +40,39 @@ jobs: runs-on: ${{ matrix.platform.os }} steps: - - uses: actions/checkout@v4 - - - name: setup node - uses: actions/setup-node@v4 - with: - node-version: 18 + - uses: actions/checkout@v4 - - name: 'Setup Rust' - uses: actions-rs/toolchain@v1 - with: - default: true - override: true - profile: minimal - toolchain: stable - target: ${{ matrix.platform.rust_target }} + - name: setup node + uses: actions/setup-node@v4 + with: + node-version: 20 - - uses: Swatinem/rust-cache@v2 + - name: 'Setup Rust' + uses: actions-rs/toolchain@v1 + with: + default: true + override: true + profile: minimal + toolchain: stable + target: ${{ matrix.platform.rust_target }} - - name: install dependencies (ubuntu only) - if: matrix.platform.os == 'ubuntu-latest' - run: | - sudo apt-get update - sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf + - uses: Swatinem/rust-cache@v2 - - uses: JonasKruckenberg/tauri-build@main - id: tauri_build - with: - target: ${{ matrix.platform.rust_target }} - projectPath: ./test/fixture - - run: | - echo "${{ steps.tauri_build.outputs.artifacts }}" - # The artifacts output can now be used to upload the artifacts - - uses: actions/upload-artifact@v3 - with: - name: artifacts - path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}" + - name: install dependencies (ubuntu only) + if: matrix.platform.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf + + - uses: JonasKruckenberg/tauri-build@main + id: tauri_build + with: + target: ${{ matrix.platform.rust_target }} + projectPath: ./test/fixture + - run: | + echo "${{ steps.tauri_build.outputs.artifacts }}" + # The artifacts output can now be used to upload the artifacts + - uses: actions/upload-artifact@v3 + with: + name: artifacts + path: "${{ join(fromJSON(steps.tauri_build.outputs.artifacts), '\n') }}" diff --git a/README.md b/README.md index e868478..f1f091a 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,10 @@ A composable action to build your Tauri project. ## Usage -As opposed to the offical [tauri-action](https://github.com/tauri-apps/tauri-action) this action is as minimal as possible. +As opposed to the offical [tauri-action](https://github.com/tauri-apps/tauri-action) this action is as minimal as possible. Instead of creating a GitHub release and uploading artifacts all-in-one, it provides outputs to conveniently compose together with other actions such as `actions/upload-artifact`, `actions/download-artifact` or `softprops/action-gh-release`. -This action needs both Node.JS and Cargo to be already setup. +This action needs both Node.JS and Cargo to be already setup. ### Minimal @@ -39,7 +39,7 @@ jobs: - name: setup node uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 20 - name: install Rust stable uses: actions-rs/toolchain@v1 @@ -88,7 +88,7 @@ jobs: - name: setup node uses: actions/setup-node@v1 with: - node-version: 16 + node-version: 20 - name: install Rust stable uses: actions-rs/toolchain@v1 @@ -165,11 +165,11 @@ jobs: runs-on: ${{ matrix.platform.os }} steps: - uses: actions/checkout@v3 - + - name: setup node uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 - name: 'Setup Rust' uses: actions-rs/toolchain@v1 diff --git a/action.yml b/action.yml index 5ce9acb..13ed6d3 100644 --- a/action.yml +++ b/action.yml @@ -21,5 +21,5 @@ outputs: artifacts: description: 'JSON array of artifact paths produced by the build command' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js'