ci: fold buckaroo-duckdb-node npm publish into release.yml #1863
This file contains hidden or 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
| # Workflow name | |
| name: Build and Publish Storybook to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: "*" | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| # List of jobs | |
| jobs: | |
| TestPython: | |
| name: Python / Test | |
| permissions: | |
| contents: write | |
| runs-on: depot-ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: pnpm/action-setup@v6 | |
| with: | |
| version: 9.10.0 | |
| # action-setup-pnpm's `run_install: true` shortcut does `pnpm install | |
| # --recursive` from the repo root, which picks up package.json files | |
| # outside the workspace (e.g. tests/integration-tests/built-pkg/). Scope the | |
| # install to `packages/` where pnpm-workspace.yaml lives — matches | |
| # checks.yml. | |
| - name: Install pnpm dependencies | |
| working-directory: packages | |
| run: pnpm install --frozen-lockfile | |
| - uses: astral-sh/setup-uv@v7 | |
| - name: Run tests | |
| working-directory: ./packages/buckaroo-js-core | |
| run: | | |
| pnpm build-storybook | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./packages/buckaroo-js-core/dist/storybook | |
| keep_files: true | |
| # - name: Setup Pages | |
| # uses: actions/configure-pages@v3 | |
| # - name: Upload Artifact | |
| # if: github.ref == 'refs/heads/main' | |
| # uses: actions/upload-pages-artifact@v1 | |
| # with: | |
| # # location of the coverage artifacts | |
| # path: "./coverage" | |
| # Upload: | |
| # name: Upload2 | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - name: Upload3 | |
| # uses: actions/upload-pages-artifact@v3 | |
| # path: packages/buckaroo-js-core/dist/storybook | |
| # - id: deploy | |
| # name: Deploy to GitHub Pages | |
| # uses: actions/deploy-pages@v4 | |
| # with: | |
| # token: ${{ github.token }} | |
| # #👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow | |
| # - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 | |
| # with: | |
| # install_command: cd packages/buckaroo-js-core; pnpm install # default: npm ci | |
| # build_command: cd packages/buckaroo-js-core; pnpm build-storybook # default: npm run build-storybook | |
| # path: packages/buckaroo-js-core/dist/storybook # default: dist/storybook | |
| # checkout: true # default: true |