Skip to content

Commit 47233e3

Browse files
committed
chore: refactor npm publish workflow and keep only one
1 parent 3820fc4 commit 47233e3

File tree

3 files changed

+4
-210
lines changed

3 files changed

+4
-210
lines changed

.github/workflows/publish-npm-beta.yml

Lines changed: 0 additions & 88 deletions
This file was deleted.

.github/workflows/publish-npm-latest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 🏷️ Publish NPM Latest
1+
name: 🏷️ Lerna Publish NPM Latest
22

33
on:
44
workflow_dispatch:
@@ -122,8 +122,11 @@ jobs:
122122
pnpm exec lerna publish from-package --force-publish --yes --otp ${{ steps.wait-for-secrets.outputs.OTP }}
123123
124124
- name: Build Website (GitHub demo site)
125+
if: ${{ inputs.dryrun != true }}
125126
run: pnpm build:demo
126127

128+
# deploy (re-publish) GitHub demo page with a Prod build but only when merging to "main" branch
129+
# and the commit message contains the text "chore: release"
127130
- name: Deploy to gh-pages
128131
if: ${{ inputs.dryrun != true }}
129132
uses: peaceiris/actions-gh-pages@v4

.github/workflows/publish-npm-prompt.yml

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)