chore: publish packages #833
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: Update package sizes | |
on: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
main: | |
name: update package-sizes.json | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.BOT_AUTH_TOKEN }} | |
- name: Install dependencies | |
run: yarn --frozen-lockfile | |
- name: calculate size | |
run: yarn analyze-package-sizes | |
- name: Check git status | |
id: gs | |
run: echo "file_diff=$(git diff ./.storybook/package-sizes.json | xargs)" >> $GITHUB_OUTPUT | |
- name: Create commit | |
if: ${{ steps.gs.outputs.file_diff }} | |
uses: EndBug/add-and-commit@v9 | |
with: | |
add: '.storybook/package-sizes.json' | |
author_name: core-ds-bot | |
author_email: [email protected] | |
message: 'chore: update package-sizes.json[skip ci]' |