From 39fca6a1ad1e3e4ac60615d96c75bb598fc3bd7a Mon Sep 17 00:00:00 2001 From: Emanuele Stoppa Date: Tue, 13 Feb 2024 17:28:50 +0000 Subject: [PATCH] ci: update oudated actions (#1809) --- .github/workflows/ja-translation.yaml | 2 +- .github/workflows/pull_request.yml | 7 +++---- .github/workflows/pull_request_js.yml | 7 ++++--- .github/workflows/release_cli.yml | 2 +- .github/workflows/release_js_api.yml | 6 ++---- .github/workflows/runtime.yml | 7 +++---- 6 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ja-translation.yaml b/.github/workflows/ja-translation.yaml index c967d37eb6e7..b508fc45c784 100644 --- a/.github/workflows/ja-translation.yaml +++ b/.github/workflows/ja-translation.yaml @@ -21,7 +21,7 @@ jobs: key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}- - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v3 with: version: 8 - name: Install libraries diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 80ed383c7083..dd11fc4a9e17 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -124,13 +124,12 @@ jobs: key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}- - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v3 with: version: 8 - name: Install wasm-pack - uses: jetli/wasm-pack-action@v0.4.0 - with: - version: 'latest' + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + - name: Build TypeScript code run: | pnpm --prefix packages/@biomejs/backend-jsonrpc i diff --git a/.github/workflows/pull_request_js.yml b/.github/workflows/pull_request_js.yml index b8c1a6817849..0a51d56946e1 100644 --- a/.github/workflows/pull_request_js.yml +++ b/.github/workflows/pull_request_js.yml @@ -41,7 +41,7 @@ jobs: key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}- - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v3 with: version: 8 - name: Run Biome Format @@ -55,7 +55,6 @@ jobs: steps: - name: Checkout PR Branch uses: actions/checkout@v4 - - uses: jetli/wasm-pack-action@v0.4.0 - name: Cache pnpm modules uses: actions/cache@v4 with: @@ -63,11 +62,13 @@ jobs: key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}- - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v3 with: version: 8 - name: Install toolchain uses: moonrepo/setup-rust@v1 + - name: Install wasm-pack + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Build WASM module for the web run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-web --target web --scope biomedev crates/biome_wasm - name: Install libraries diff --git a/.github/workflows/release_cli.yml b/.github/workflows/release_cli.yml index 9468fee50e28..ed1033418454 100644 --- a/.github/workflows/release_cli.yml +++ b/.github/workflows/release_cli.yml @@ -154,7 +154,7 @@ jobs: uses: actions/checkout@v4 - name: Install wasm-pack - uses: jetli/wasm-pack-action@v0.4.0 + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Build WASM module for bundlers run: wasm-pack build --out-dir ../../packages/@biomejs/wasm-bundler --target bundler --release --scope biomedev crates/biome_wasm diff --git a/.github/workflows/release_js_api.yml b/.github/workflows/release_js_api.yml index 84eb8fca4826..04ad4ccc727e 100644 --- a/.github/workflows/release_js_api.yml +++ b/.github/workflows/release_js_api.yml @@ -66,9 +66,7 @@ jobs: node-version: 20 - name: Install wasm-pack - uses: jetli/wasm-pack-action@v0.4.0 - with: - version: 'latest' + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh - name: Cache pnpm modules uses: actions/cache@v4 @@ -77,7 +75,7 @@ jobs: key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}- - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v3 with: version: 8 diff --git a/.github/workflows/runtime.yml b/.github/workflows/runtime.yml index 77ccef08294a..605d7fbc751e 100644 --- a/.github/workflows/runtime.yml +++ b/.github/workflows/runtime.yml @@ -26,9 +26,8 @@ jobs: - name: Checkout PR Branch uses: actions/checkout@v4 - name: Install wasm-pack - uses: jetli/wasm-pack-action@v0.4.0 - with: - version: 'latest' + run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh + - name: Cache pnpm modules uses: actions/cache@v4 with: @@ -36,7 +35,7 @@ jobs: key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: | ${{ runner.os }}- - - uses: pnpm/action-setup@v2.2.4 + - uses: pnpm/action-setup@v3 with: version: 8 - name: Install toolchain