This repository has been archived by the owner on Oct 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 100
error npx: command not found #74
Comments
Encountering the same issue, any updates? |
workflow file: name: Compile and Publish Web Assembly Edition
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
wasm:
runs-on: windows-latest
steps:
- name: disable git eol translation
run: git config --global core.autocrlf false
- name: checkout
uses: actions/checkout@v3
- name: Install Wrangler
run: |
node -v
npx --yes [email protected]
- name: Install Rustup using win.rustup.rs
run: |
# Disable the download progress bar which can cause perf issues
$ProgressPreference = "SilentlyContinue"
Invoke-WebRequest https://win.rustup.rs/ -OutFile rustup-init.exe
.\rustup-init.exe -y --default-host=x86_64-pc-windows-msvc --default-toolchain=nightly
del rustup-init.exe
rustup target add x86_64-pc-windows-msvc --toolchain nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
shell: powershell
- name: Add mingw64 to path for x86_64-msvc
shell: bash
run: echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH
- name: Add wasm-pack
shell: cmd
run: cargo install wasm-pack
- name: Build
shell: cmd
run: wasm-pack build --release --target web --out-dir nbtworkbench
- name: Publish
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
projectName: 'nbtworkbench'
directory: .
workingDirectory: './web'
wranglerVersion: 3.28.2 |
same problem here! Any updates? |
My job ran just fine until I set
My step options are straightforward.
FWIW, I'm new to GitHub Actions and Cloudflare Pages. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
not working inside of container action :/
The text was updated successfully, but these errors were encountered: