Skip to content

fix: node version to 18 #36

fix: node version to 18

fix: node version to 18 #36

Workflow file for this run

name: build-deploy
on:
push:
tags:
- v[0-9]*
jobs:
release:
runs-on: ubuntu-latest
steps:
# Wasm build
- uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: 1.22.5
- name: Unshallow
run: git fetch --prune --unshallow
- name: build wasm
run: |
make build
# Frontend
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: build frontend
run: |
make build-front
# publish page
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_web/build
cname: repeatit.io