Skip to content

Add a custom function to generate tag id #41

Add a custom function to generate tag id

Add a custom function to generate tag id #41

Workflow file for this run

name: CC
on:
pull_request:
branches: ['*']
jobs:
typecheck-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Node 18
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9.0.2
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@v3
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install deps (with cache)
run: pnpm install
- name: Contentlayer build
run: pnpm -C website run build
- name: Run typecheck in website workspace
run: pnpm -C website run typecheck
# - name: Run typecheck in packages workspace
# run: pnpm -C packages/emblor run typecheck
- name: Check prettier format
run: pnpm run prettier-check
- name: Build packages
run: pnpm run build --filter "./packages/*"