Skip to content

Commit 40f8d0c

Browse files
authored
fix: update conditions for building documentation and uploading artifacts based on release status (#130)
2 parents 460ff1d + 587a1a4 commit 40f8d0c

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.github/workflows/release.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,20 @@ jobs:
7575
run: pnpm run build:production
7676

7777
- name: Semantic Release (Prerelease)
78-
run: pnpm run release:semantic
78+
id: semantic
79+
uses: cycjimmy/semantic-release-action@v4
80+
with:
81+
semantic_version: 24.2.9
82+
extra_plugins: |
83+
@semantic-release/changelog
84+
@semantic-release/npm
85+
@semantic-release/github
7986
env:
8087
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8188
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
8289

8390
- name: Create or Update Release PR
91+
if: steps.semantic.outputs.new_release_published == 'true'
8492
uses: peter-evans/create-pull-request@v7
8593
with:
8694
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)