Skip to content

chore(deps): update @tenphi/tasty to 3.1.0 #3644

chore(deps): update @tenphi/tasty to 3.1.0

chore(deps): update @tenphi/tasty to 3.1.0 #3644

Workflow file for this run

name: Pull Request
on:
pull_request:
paths-ignore:
- '.changeset/**'
- '.husky/**'
concurrency:
group: ci-pull-request=${{github.ref}}-1
cancel-in-progress: true
permissions:
contents: read
issues: write
pull-requests: write
statuses: write
# Note: Canary publishing is handled by publish.yml workflow
jobs:
tests:
name: 'Tests & lint'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# Installs the pnpm pinned by `packageManager` — the same field pnpm reads
# to switch itself locally, so CI and a contributor cannot drift apart.
# Must precede `setup-node`, whose `cache: 'pnpm'` needs `pnpm` on PATH.
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run the lint
run: pnpm lint
- name: Run the tests
run: pnpm test
browser-tests:
name: 'Browser tests'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
# Installs the pnpm pinned by `packageManager` — the same field pnpm reads
# to switch itself locally, so CI and a contributor cannot drift apart.
# Must precede `setup-node`, whose `cache: 'pnpm'` needs `pnpm` on PATH.
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
# Cached by Playwright's own version, so a browser is only downloaded when
# the dependency actually changes rather than on every run.
- name: Resolve Playwright version
id: playwright
run: echo "version=$(node -p "require('playwright/package.json').version")" >> "$GITHUB_OUTPUT"
- uses: actions/cache@v6
id: playwright-cache
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright.outputs.version }}
# `--with-deps` pulls the system libraries the browser needs on a bare
# runner. Only the binary is cached, so this still runs on a cache hit —
# it is a no-op when the libraries are already present.
- name: Install Chromium
run: pnpm exec playwright install --with-deps chromium
- name: Run the browser tests
run: pnpm test:browser
deploy-chromatic:
name: 'Prepare Storybook for review & tests'
runs-on: ubuntu-latest
environment:
name: Chromatic staging
url: ${{ steps.publish_chromatic.outputs.url }}
env:
CHROMATIC_RETRIES: 5
LOG_LEVEL: 'error'
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/cache@v6
name: Download storybook cache
with:
path: |
**/node_modules/.cache
key: ${{ runner.os }}-storybook-${{ github.run_id }}
restore-keys: |
${{ runner.os }}-storybook
# Installs the pnpm pinned by `packageManager` — the same field pnpm reads
# to switch itself locally, so CI and a contributor cannot drift apart.
# Must precede `setup-node`, whose `cache: 'pnpm'` needs `pnpm` on PATH.
- uses: pnpm/action-setup@v6
- uses: actions/setup-node@v7
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Publish to Chromatic
id: publish_chromatic
uses: chromaui/action@v11
with:
exitZeroOnChanges: true
exitOnceUploaded: true
onlyChanged: true
debug: true
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# Announcing the deploy is not the check: `Publish to Chromatic` above
# has already uploaded and reported its own outcome. A 503 from the
# issues API here used to fail the job after all the real work passed.
- name: Comment PR
uses: actions/github-script@v6
continue-on-error: true
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const setMessage = require('${{ github.workspace }}/scripts/ci/set-message.cjs')
await setMessage({
header: "## 🧪 Storybook is successfully deployed!",
body: `
- 👀 Review changes: ${{ steps.publish_chromatic.outputs.url }}
- 👨‍🎨 Preview storybook: ${{ steps.publish_chromatic.outputs.storybookUrl }}
`,
github,
repo: context.repo,
prNumber: context.payload.pull_request.number
})