Skip to content

Commit

Permalink
ci: manual release ignore new changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Dec 18, 2024
1 parent 7b1d7ac commit 9c8d1b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release Go modules
# if a release was published, release the Go modules
# If a release was published, release the Go modules
if: steps.changesets_release.outputs.published == 'true'
uses: peter-evans/repository-dispatch@v3
with:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release-manual.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Versions and Publish NPM
name: Release Versions and Publish

on:
workflow_dispatch:
Expand Down Expand Up @@ -40,8 +40,11 @@ jobs:
CCRI_TOKEN: ${{ secrets.CCRI_TOKEN }}
- name: Replace src code with dists for publishing
run: ./scripts/replace-src-with-dists-for-publishing.sh
# If no changesets were detected in the PR prep step then we are in
# release/publish mode. Check for and publish any new versions to NPM.
# Ensure we are in publish mode by deleting any existing changesets.
# The next publish step will only run properly if no changesets are detected.
- name: Remove any new changesets since last versions
run: rm -rf .changeset
# Check for and publish any new versions to NPM.
- name: Publish to NPM and create GitHub releases
id: changesets_release
uses: changesets/action@v1
Expand All @@ -51,7 +54,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release Go modules
# if a release was published, release the Go modules
# If a release was published, release the Go modules
if: steps.changesets_release.outputs.published == 'true'
uses: peter-evans/repository-dispatch@v3
with:
Expand Down

0 comments on commit 9c8d1b5

Please sign in to comment.