Skip to content

feat: 🎸 Grid

feat: 🎸 Grid #27

Workflow file for this run

name: Release
on:
push:
branches: [release]
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: bun i --frozen-lockfile && bun i -g @antfu/ni npm
- run: nr build
- run: nr release
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
outputs:
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
has_docs_changes: ${{ steps.semantic.outputs.has_docs_changes }}
storybook:
needs: release
if: needs.release.outputs.new_release_published == 'true' || needs.release.outputs.has_docs_changes == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/setup-node@v4
with:
node-version: lts/*
- run: bun i --frozen-lockfile && bun run build:storybook
- uses: chromaui/action@latest
with:
storybookBuildDir: storybook
projectToken: ${{ secrets.CHROMATIC_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}