From 71b451f02afc1a2b5336c5aafc1e5b7dbd4fe866 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Sat, 12 Oct 2019 23:23:48 -0400 Subject: [PATCH] Update publish.yml --- .github/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c6e72d21..0813f57a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,6 +4,11 @@ on: push: branches: - master + pull_request: + branches: + - master + types: + - closed jobs: publish: @@ -22,14 +27,15 @@ jobs: git checkout master git config user.email "$GH_EMAIL" git config user.name "Francisco Hodge" - git add . || true - git commit -m "Build Update" || true env: GH_EMAIL: ${{secrets.GH_EMAIL}} - name: Bump version run: | npm version patch + npm run build + git add . || true + git commit -m "Build Update" || true git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY" env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}