Skip to content

fix(text): prevent always running detect text alignment #539

fix(text): prevent always running detect text alignment

fix(text): prevent always running detect text alignment #539

name: Deploy Styleguide & Lab
on:
pull_request:
types:
- opened
- synchronize
- reopened
jobs:
deploy-styleguide-lab:
name: Deploy Styleguide & Lab
runs-on: ubuntu-latest
concurrency: changes-deploys
steps:
- name: Checkout Maker master branch
uses: actions/checkout@v2
- name: Checkout Maker deploys branch in .dist directory
uses: actions/checkout@v2
with:
repository: square/maker
ref: deploys
path: .dist
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build & deploy Styleguide & Lab
run: |
cd .dist
git config user.name github-actions
git config user.email github-actions@github.com
cd ..
export DEPLOY_NAME=git_branch
npm run deploy-all-ci
- name: Comment Styleguide & Lab links on PR
uses: pretzelhammer/comment-on-pr@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
msg: ${{ format('Deployed [Styleguide](https://square.github.io/maker/styleguide/{0}/#/) and [Lab](https://square.github.io/maker/lab/{0}/#/).<br><details><summary>Notes</summary><ol><li>Links may take a few minutes to update after PR is opened or commit is pushed.</li><li>Links may become invalidated after PR is merged or closed.</li><li>Links for all releases and open PRs can be found on the <a href="https://square.github.io/maker/">Maker Deploys</a> page.</li></ol></details>', github.head_ref) }}
check_for_duplicate_msg: true