diff --git a/.github/workflows/build-dev-and-ci.yml b/.github/workflows/build-dev-and-ci.yml index 35d613de1c..5ab2ceb829 100644 --- a/.github/workflows/build-dev-and-ci.yml +++ b/.github/workflows/build-dev-and-ci.yml @@ -46,9 +46,6 @@ jobs: echo "Latest updated version:" rustc --version - - name: 🔧 Add .cargo/bin to PATH - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - name: 📜 Prepare to install Rust dependencies uses: cargo-bins/cargo-binstall@main @@ -70,7 +67,7 @@ jobs: NODE_ENV: production run: | cd frontend - npm run build + PATH=~/.cargo/bin:$PATH npm run build - name: 📤 Publish to Cloudflare Pages id: cloudflare diff --git a/.github/workflows/build-production.yml b/.github/workflows/build-production.yml index f42148c5b2..8047941dfd 100644 --- a/.github/workflows/build-production.yml +++ b/.github/workflows/build-production.yml @@ -43,9 +43,6 @@ jobs: echo "Latest updated version:" rustc --version - - name: 🔧 Add .cargo/bin to PATH - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - name: 📜 Prepare to install Rust dependencies uses: cargo-bins/cargo-binstall@main @@ -65,7 +62,7 @@ jobs: NODE_ENV: production run: | cd frontend - npm run build + PATH=~/.cargo/bin:$PATH npm run build - name: 📤 Publish to Cloudflare Pages id: cloudflare diff --git a/.github/workflows/comment-!build-commands.yml b/.github/workflows/comment-!build-commands.yml index c8e9a4a96b..5db7b3b1c4 100644 --- a/.github/workflows/comment-!build-commands.yml +++ b/.github/workflows/comment-!build-commands.yml @@ -69,9 +69,6 @@ jobs: echo "Latest updated version:" rustc --version - - name: 🔧 Add .cargo/bin to PATH - run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH - - name: 📜 Prepare to install Rust dependencies uses: cargo-bins/cargo-binstall@main @@ -106,7 +103,7 @@ jobs: NODE_ENV: production run: | cd frontend - npm run ${{ steps.build_command.outputs.command }} + PATH=~/.cargo/bin:$PATH npm run ${{ steps.build_command.outputs.command }} - name: 📤 Publish to Cloudflare Pages id: cloudflare