Skip to content

Commit 14e6c70

Browse files
committed
feat: add create-release job to publish GitHub Release after npm publish
1 parent 34b4852 commit 14e6c70

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/publish-ui-npm.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,21 @@ jobs:
6363
release-mode: ${{ needs.detect-mode.outputs.release-mode }}
6464
bump-type: ${{ needs.detect-mode.outputs.bump-type }}
6565
secrets: inherit
66+
67+
create-release:
68+
name: Create GitHub Release
69+
needs: [detect-mode, publish]
70+
if: needs.detect-mode.outputs.release-mode == 'release'
71+
runs-on: ubuntu-latest
72+
permissions:
73+
contents: write
74+
steps:
75+
- name: Create GitHub Release
76+
env:
77+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
RELEASE_VERSION: ${{ needs.publish.outputs.new-version }}
79+
run: |
80+
gh release create "$RELEASE_VERSION" \
81+
--title "@datum-cloud/activity-ui $RELEASE_VERSION" \
82+
--generate-notes \
83+
--repo ${{ github.repository }}

0 commit comments

Comments
 (0)