diff --git a/.github/workflows/artifacts.yml b/.github/workflows/build.yml similarity index 94% rename from .github/workflows/artifacts.yml rename to .github/workflows/build.yml index e0c4cc7..4a806d1 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: 'Update artifacts' +name: 'Build' on: push: branches: @@ -71,12 +71,13 @@ jobs: - name: Install dependencies run: pnpm install - - name: ESlint - run: pnpm run lint - - name: Build run: | pnpm run build + + - name: Push artifacts + if: ${{ github.event.pull_request.merged == true }} + run: | git config --global user.email "noreply@github.com" git config --global user.name "CI" git diff --quiet || (git add -A && git commit -m "build: update bundled artifacts [skip ci]" && git push)