Skip to content

Fix source snippet generation #50

Fix source snippet generation

Fix source snippet generation #50

Workflow file for this run

name: Solid Renderer Pipeline
on:
pull_request:
branches:
- '*'
paths:
- packages/renderers/solid/**
push:
branches:
- main
paths:
- packages/renderers/solid/**
release:
types: [published]
branches:
- main
defaults:
run:
working-directory: packages/renderers/solid
jobs:
solid-workflow:
runs-on: ubuntu-latest
name: Lib workflow
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Enable Corepack
run: corepack enable && corepack install
- name: Print versions
run: node --version && yarn --version
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install project dependencies
run: yarn install
- name: Check bundling
run: yarn check
working-directory: packages/renderers/solid
- name: Publish to NPM
if: github.event_name == 'release'
run: yarn npm publish
working-directory: packages/renderers/solid
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}