Upgrade to Storybook v8 and latest Solid #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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 --prefer-offline | |
- 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: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |