From e17ecc8fbb7ad0bf325078d6aa786cd792a1eaca Mon Sep 17 00:00:00 2001 From: Loren Johnson Date: Mon, 7 Oct 2024 13:24:14 +0200 Subject: [PATCH] chore: Add token to release workflow and fix and patch nx command --- .github/workflows/create_release.yml | 8 +++++++- nx.json | 4 +--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index b588660a9..deb847beb 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -36,6 +36,7 @@ jobs: with: fetch-tags: true fetch-depth: 0 + token: ${{ secrets.GH_WBS_BOT_TOKEN }} - uses: ./.github/actions/setup-environment with: @@ -67,4 +68,9 @@ jobs: PROJECT_ARG="-p ${{ inputs.image_name }}" fi - ./nx release $PROJECT_ARG $DRY_RUN_FLAG + ./nx release $PROJECT_ARG $DRY_RUN_FLAG --skip-publish --verbose + + # Temporary workaround for nx issue: https://github.com/nrwl/nx/issues/22073# + if [ $? -eq 0 ] && [ -z "$DRY_RUN_FLAG" ]; then + git push origin --tags + fi diff --git a/nx.json b/nx.json index 4408d021c..82bd4a6e1 100644 --- a/nx.json +++ b/nx.json @@ -21,9 +21,7 @@ "conventionalCommits": true }, "changelog": { - "projectChangelogs": { - "createRelease": "github" - } + "projectChangelogs": true } }, "targetDefaults": {