chore(deps): bump path-to-regexp from 2.4.0 to 3.3.0 #9245
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR demo CI | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
permissions: | |
contents: read | |
deployments: read | |
pull-requests: write # needed to write a comment | |
statuses: write | |
# This allows a subsequently queued workflow run to interrupt previous runs | |
concurrency: | |
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}' | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build demo and deploy it | |
environment: pull_request_unsafe | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.7 | |
- name: Use Node.js | |
uses: ./.github/actions/setup-node | |
- name: cache for storybook | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 #v4.0.2 | |
with: | |
path: packages/*/node_modules | |
key: ${{ runner.os }}-storybook-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-storybook- | |
- name: Install | |
run: | | |
node --version | |
yarn install --frozen-lockfile | |
- name: Run test:demo | |
run: | | |
node --version | |
yarn test:demo | |
- name: Before surge | |
run: | | |
node --version | |
yarn global add surge | |
echo "$(yarn global bin)" >> $GITHUB_PATH | |
node --version | |
./.github/workflows/before-surge.sh | |
env: | |
STORYBOOK_FIGMA_ACCESS_TOKEN: ${{ secrets.STORYBOOK_FIGMA_ACCESS_TOKEN }} | |
- name: deploy if master | |
if: github.ref == 'refs/heads/master' | |
run: surge --project .static --domain "talend.surge.sh" | |
env: | |
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} | |
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | |
- name: Deploy to Netlify production | |
if: github.ref == 'refs/heads/master' | |
uses: netlify/actions/cli@master | |
with: | |
args: deploy --dir=packages/design-docs/storybook-static --prod | |
env: | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
- name: deploy if PR | |
if: github.ref != 'refs/heads/master' | |
run: | | |
surge --project .static --domain "${{ github.event.number }}.talend.surge.sh" | |
env: | |
SURGE_LOGIN: ${{ secrets.SURGE_LOGIN }} | |
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }} | |
- name: Comment PR | |
uses: daohoangson/comment-on-github@v2 | |
if: ${{github.event_name == 'pull_request' && !startsWith(github.ref, 'refs/heads/dependabot') }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
body: ":octocat: [Demo is available here](http://${{ github.event.number }}.talend.surge.sh)" | |
fingerprint: ${{ github.event.number }} | |
replace: please |