From 74f1907e4cfcb01e8dd47133b24376955aec8a1a Mon Sep 17 00:00:00 2001 From: foxriver76 Date: Sun, 2 Jul 2023 21:02:18 +0200 Subject: [PATCH] bring back tests and pr token usage --- .github/workflows/official-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/official-release.yml b/.github/workflows/official-release.yml index 6790865989..85b1b15f63 100644 --- a/.github/workflows/official-release.yml +++ b/.github/workflows/official-release.yml @@ -51,6 +51,10 @@ jobs: - name: Run scripts run: npm run preinstall && npm run install + - name: Test + if: steps.changes.outputs.result == 'ok' + run: npm test + - name: Determine the version bump id: version uses: actions/github-script@v6 @@ -154,7 +158,7 @@ jobs: id: cpr uses: peter-evans/create-pull-request@v5 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PR_TOKEN }} commit-message: "[OFFICIAL RELEASE] ${{ steps.version.outputs.result }}" committer: foxriver76 author: foxriver76