Skip to content

ci: fix

ci: fix #34

Workflow file for this run

on:
push:
branches:
- main
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
name: Bundle and Publish Sources
jobs:
build:
name: Bundle and Publish Sources
runs-on: ubuntu-latest
steps:
- name: Checkout Branch
uses: actions/checkout@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
- name: Checkout existing bundles
uses: actions/checkout@v3
continue-on-error: true
with:
ref: gh-pages
path: bundles
- name: Get pnpm store directory
id: pnpm-cache
continue-on-error: true
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: Installing project dependencies
run: pnpm install --shamefully-hoist
- name: Building the project
run: pnpm bundle
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: bundles