From e8880a25e77935e33020f7659a7094b00252bb07 Mon Sep 17 00:00:00 2001 From: Kazumi Inada Date: Wed, 27 Mar 2024 00:38:20 +0900 Subject: [PATCH] chore: Setup dist update on release --- .github/workflows/update-dist.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/update-dist.yaml diff --git a/.github/workflows/update-dist.yaml b/.github/workflows/update-dist.yaml new file mode 100644 index 0000000..f1aa843 --- /dev/null +++ b/.github/workflows/update-dist.yaml @@ -0,0 +1,22 @@ +on: + push: + branches: + - "release-please--**" + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + cache: "npm" + - run: npm ci + - run: npm run build + - run: | + git config user.name github-actions[bot] + git config user.email 41898282+github-actions[bot]@users.noreply.github.com + git add -f dist + git commit -m "chore: Build dist" + git push