Skip to content

chore(ARCH-662): upgrade storybook to 7 #1555

chore(ARCH-662): upgrade storybook to 7

chore(ARCH-662): upgrade storybook to 7 #1555

name: yarn-deduplicate
on:
pull_request:
paths:
- "yarn.lock"
# 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
permissions:
contents: write
deployments: read
pull-requests: write # needed to write comment in PR
jobs:
dedupe:
runs-on: ubuntu-latest
name: Deduplicate
environment: pull_request_unsafe
steps:
- name: Checkout sources
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 #v3.6.0
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
- name: Use Node.js
uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d # v3.8.1
with:
node-version: 18
registry-url: "https://registry.npmjs.org/"
scope: "@talend"
cache: "yarn"
- name: yarn-deduplicate
id: deduplicate
run: |
yarn
yarn yarn-deduplicate
echo "::set-output name=diff::$(git status --short yarn.lock)"
- name: Commit dedupe
if: steps.deduplicate.outputs.diff
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 #1.4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: "chore: yarn-deduplicate"
branch: ${{ github.head_ref }}