Skip to content

Merge pull request #4 from vitessce/tkakar/cat-936-gh-pages-deploy #5

Merge pull request #4 from vitessce/tkakar/cat-936-gh-pages-deploy

Merge pull request #4 from vitessce/tkakar/cat-936-gh-pages-deploy #5

name: Node.js CI
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20]
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build the project
run: pnpm run build
- name: Deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
npm run deploy -- -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}