v1.0.0-beta.3 #46
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: 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: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |