diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6548dc96..7ecf23b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,11 +23,15 @@ jobs: git config user.email "github-actions@github.com" - name: Build run: npx projen build - - name: Commit and push changes (if any) - run: 'git diff --exit-code || (git add . && git commit -m "chore: self mutation" - && git push origin HEAD:${{ github.event.pull_request.head.ref }})' - - if: ${{ github.repository == github.event.pull_request.head.repo.full_name }} - name: Update status check + - name: Check for changes + id: git_diff + run: git diff --exit-code || echo "::set-output name=has_changes::true" + - if: steps.git_diff.outputs.has_changes + name: Commit and push changes (if changed) + run: 'git add . && git commit -m "chore: self mutation" && git push origin + HEAD:${{ github.event.pull_request.head.ref }}' + - if: steps.git_diff.outputs.has_changes + name: Update status check (if changed) run: gh api -X POST /repos/${{ github.event.pull_request.head.repo.full_name }}/check-runs -F name="build" -F head_sha="$(git rev-parse HEAD)" -F status="completed" -F conclusion="success" diff --git a/.npmignore b/.npmignore index d7c35924..d90c7c46 100644 --- a/.npmignore +++ b/.npmignore @@ -15,6 +15,7 @@ /tsconfig.json dist junit.xml +tsconfig.tsbuildinfo !/lib !/lib/**/*.d.ts !/lib/**/*.js diff --git a/.projen/deps.json b/.projen/deps.json index 771ac055..fd6c8172 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -61,7 +61,7 @@ }, { "name": "projen", - "version": "^0.17.78", + "version": "^0.17.83", "type": "build" }, { diff --git a/.projen/tasks.json b/.projen/tasks.json index 785411a1..4ff75222 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -39,7 +39,7 @@ "description": "Bumps version based on latest git tag and generates a changelog entry", "steps": [ { - "exec": "git describe --tags --match=\"v*\" --first-parent --abbrev=0 > .version.tmp.json" + "exec": "git -c \"versionsort.suffix=-\" tag --sort=\"-version:refname\" --list \"v*\" | head -n1 > .version.tmp.json" }, { "exec": "standard-version" diff --git a/package.json b/package.json index 6cce7e89..8a021491 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "jest": "^26.4.2", "jest-junit": "^12", "json-schema": "^0.2.5", - "projen": "^0.17.78", + "projen": "^0.17.83", "standard-version": "^9", "ts-jest": "^26.1.0", "typescript": "^3.9.5" diff --git a/yarn.lock b/yarn.lock index b78f0255..f02bed93 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4414,10 +4414,10 @@ progress@^2.0.0: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.17.78: - version "0.17.78" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.17.78.tgz#061d110f8614e31fee21b86991240c7fbcf7b701" - integrity sha512-R9gJqfQm+09Fgw/Kz/idHqdJYl7mIq67MvNqNsbZ+ylPrqz3qRWOyb1/S0lZGO9QxCfeONP5zeXTaImHH1I+6w== +projen@^0.17.83: + version "0.17.83" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.17.83.tgz#a6f4a35dd0d24023dbb9de45359ad5c52382e5bb" + integrity sha512-id8TZ9u/28Kts5xO5uGBnX+ylI+0y+JUYh2S4pyKEF44peHUdFe8VpnRXqIzsa1b3g8oITtCzF1lkILnoomR8g== dependencies: "@iarna/toml" "^2.2.5" chalk "^4.1.0"