Skip to content

fix: feedback padding #450

fix: feedback padding

fix: feedback padding #450

Workflow file for this run

name: πŸ“’ Test & Release
on:
push:
branches:
- main
pull_request:
permissions:
contents: write
pull-requests: write
pages: write
id-token: write
jobs:
test:
name: πŸ§ͺ tests
runs-on: ubuntu-latest
steps:
- name: πŸ› οΈ Prepare pnpm workspace
uses: dyne/pnpm@main
with:
node-version: 20
pnpm-version: 8
- run: echo "PUPPETEER_VERSION=$(pnpm ls puppeteer --json | jq '.[0].devDependencies.puppeteer.version' -r)" >> $GITHUB_ENV
shell: bash
- uses: actions/cache@v4
with:
path: ~/.cache/puppeteer/chrome
key: ${{ runner.os }}-puppeteer-chromium-${{ env.PUPPETEER_VERSION }}
restore-keys: ${{ runner.os }}-puppeteer-chromium-
- name: install chromium
run: |
# very bad, but I do not found any other way to run
# a postinstall script of an already installed package
pnpm -C node_modules/puppeteer run postinstall
env:
PUPPETEER_DOWNLOAD_BASE_URL: https://storage.googleapis.com/chrome-for-testing-public
- name: πŸ§ͺ Run the tests
run: pnpm run test
docs:
name: πŸ“– docs
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- name: πŸ› οΈ Prepare pnpm workspace
uses: dyne/pnpm@main
with:
node-version: 20
pnpm-version: 8
- uses: bitovi/[email protected]
with:
install_command: pnpm install
build_command: pnpm run build && pnpm run build-storybook
path: storybook-static
release-please:
name: πŸ“¦ release
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- uses: googleapis/release-please-action@v4
id: release
with:
release-type: node
token: ${{ secrets.PAT }}
- uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
if: ${{ steps.release.outputs.release_created }}
- uses: pnpm/action-setup@v2
if: ${{ steps.release.outputs.release_created }}
with:
version: 8
- run: |
pnpm install
pnpm build
if: ${{ steps.release.outputs.release_created }}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}