Skip to content

Update caniuse-lite to 1.0.30001687 #4585

Update caniuse-lite to 1.0.30001687

Update caniuse-lite to 1.0.30001687 #4585

name: Deploy to GH Pages
on:
push:
# Don't run for irrelevant changes.
paths-ignore:
- 'docs/**'
- '!.github/workflows/deploy-storybook.yml'
- '.storybook/**'
- '.wordpress-org/**'
- '__mocks__/**'
- '__static__/**'
- 'bin/**'
- 'tests/**'
branches:
- main
permissions:
contents: read
# Cancels all previous workflow runs for pull requests that have not completed.
concurrency:
# The concurrency group contains the workflow name and the (target) branch name.
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: true
jobs:
build-storybook:
name: Build storybook
runs-on: ubuntu-latest
permissions:
contents: write # for Git to git push
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Setup Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af
with:
node-version-file: '.nvmrc'
cache: npm
- name: Install dependencies
run: npm ci
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Build storyook
run: npm run storybook:build
- name: Checkout gh-pages
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
ref: gh-pages
token: ${{ secrets.GOOGLEFORCREATORS_BOT_TOKEN }}
path: gh-pages
- name: Move storybook assets
run: |
rm -rf gh-pages/storybook/*
mv build/storybook/* gh-pages/storybook/
- name: Commit updates
run: |
git add .
git status
git diff --staged --quiet && echo 'No changes to commit; exiting!' && exit 0
git commit -m "Deploy storybook for ${{ github.sha }}"
git pull --rebase --no-edit --quiet
git push origin gh-pages
env:
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: googleforcreators-bot
GIT_COMMITTER_EMAIL: [email protected]
GIT_COMMITTER_NAME: googleforcreators-bot
working-directory: ./gh-pages