Skip to content

Update node in CI

Update node in CI #43

Workflow file for this run

name: Deploy Snek!
on:
push:
branches:
- master
jobs:
deploy:
name: Deploy Snek!
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
- name: Set up a Node.js environment
uses: actions/setup-node@v2
with:
cache: npm
node-version: 22
- name: Install Node.js dependencies
run: npm install
- name: Set up a Rust environment
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: wasm32-unknown-unknown
profile: minimal
override: true
# Note that we don't cache the Rust side of things,
# because we use a nightly toolchain anyway.
- name: Build
run: npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist