Skip to content

[Snyk] Upgrade @fortawesome/fontawesome-svg-core from 6.5.2 to 6.6.0 #3190

[Snyk] Upgrade @fortawesome/fontawesome-svg-core from 6.5.2 to 6.6.0

[Snyk] Upgrade @fortawesome/fontawesome-svg-core from 6.5.2 to 6.6.0 #3190

name: Build and Deploy Storybooks
on:
pull_request:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node-version: [18.x]
steps:
- name: Checkout 🛎️
uses: actions/[email protected] # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install 🔧 # This example project is built using yarn and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
run: yarn install
- name: Build Storybooks 🔨
run: yarn build-storybook
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
TARGET_FOLDER: ${{ steps.extract_branch.outputs.branch }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: storybook-static # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch
- name: Find Comment
if: steps.extract_branch.outputs.branch != 'main'
uses: peter-evans/find-comment@v1
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: |
Storybooks Link For Branch
https://dts-stn.github.io/${{ github.event.pull_request.base.repo.name }}/${{ steps.extract_branch.outputs.branch }}
- name: Create or update comment # comment in pull request storybooks link
if: steps.extract_branch.outputs.branch != 'main'
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
body: |
Storybooks Link For Branch
https://dts-stn.github.io/${{ github.event.pull_request.base.repo.name }}/${{ steps.extract_branch.outputs.branch }}
edit-mode: replace