Skip to content

Commit e17ecc8

Browse files
committed
chore: Add token to release workflow and fix and patch nx command
1 parent c94c8cb commit e17ecc8

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/create_release.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
with:
3737
fetch-tags: true
3838
fetch-depth: 0
39+
token: ${{ secrets.GH_WBS_BOT_TOKEN }}
3940

4041
- uses: ./.github/actions/setup-environment
4142
with:
@@ -67,4 +68,9 @@ jobs:
6768
PROJECT_ARG="-p ${{ inputs.image_name }}"
6869
fi
6970
70-
./nx release $PROJECT_ARG $DRY_RUN_FLAG
71+
./nx release $PROJECT_ARG $DRY_RUN_FLAG --skip-publish --verbose
72+
73+
# Temporary workaround for nx issue: https://github.com/nrwl/nx/issues/22073#
74+
if [ $? -eq 0 ] && [ -z "$DRY_RUN_FLAG" ]; then
75+
git push origin --tags
76+
fi

nx.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
"conventionalCommits": true
2222
},
2323
"changelog": {
24-
"projectChangelogs": {
25-
"createRelease": "github"
26-
}
24+
"projectChangelogs": true
2725
}
2826
},
2927
"targetDefaults": {

0 commit comments

Comments
 (0)