Skip to content

fix: include compute.wasm in git for Vercel deployment #25

fix: include compute.wasm in git for Vercel deployment

fix: include compute.wasm in git for Vercel deployment #25

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build packages
run: npm run build
- name: Run tests
run: npm test
- name: Lint
run: npm run lint
publish:
needs: build
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build packages
run: npm run build:packages
- name: Publish @computekit/core
run: cd packages/core && npm publish --access public || echo "Already published or failed"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish @computekit/react
run: cd packages/react && npm publish --access public || echo "Already published or failed"
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}