Skip to content

chore: updated swc version to latest (#5084) #5292

chore: updated swc version to latest (#5084)

chore: updated swc version to latest (#5084) #5292

Workflow file for this run

name: Site publish
on:
workflow_dispatch:
push:
branches:
- main
jobs:
site-build:
name: Build & publish site
runs-on: ubuntu-latest
# Run the job if manually triggered or if the commit message includes '#publish' & the check suite has passed
if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '#publish')
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
- name: Setup Job and Install Dependencies
uses: ./.github/actions/setup-job
- name: Generate Custom Elements Manifest
run: yarn docs:analyze
- name: Move CEM to Storybook directory
run: cp projects/documentation/custom-elements.json storybook/
- name: Build documentation
run: yarn docs:production
- name: Build Storybook
run: yarn storybook:build
- name: Add redirects to documentation
run: echo '/* /index.html 200' > projects/documentation/dist/_redirects
- name: Deploy to GitHub Pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
yarn gh-pages -d projects/documentation/dist -m "[skip ci] update demonstration site" -t -u "github-actions-bot <support+actions@github.com>" --nojekyll
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}