File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 7676
7777 # npm publish runs directly in workflow step so OIDC works
7878 - name : Publish to npm with OIDC
79- if : success()
80- run : |
81- # Check if any package was versioned (package.json was modified)
82- if git diff --name-only HEAD~1 HEAD | grep -q "package.json"; then
83- echo "Publishing packages to npm..."
84- npm publish --workspaces --access public --provenance --registry https://registry.npmjs.org
85- else
86- echo "No version changes detected, skipping npm publish"
87- fi
79+ if : ${{ hashFiles('.release-created') != '' }}
80+ run : npm publish --workspaces --access public --provenance --registry https://registry.npmjs.org
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ plugins:
1818 - - '@semantic-release/changelog'
1919 - changelogTitle : " # Changelog\n\n All notable changes to this project will be documented in this file."
2020 - - '@semantic-release/exec'
21- - publishCmd : yarn lerna version ${nextRelease.version} --no-git-tag-version --no-push --yes --exact
21+ - publishCmd : yarn lerna version ${nextRelease.version} --no-git-tag-version --no-push --yes --exact && echo "true" > .release-created
2222 - ' @semantic-release/github'
2323
2424preset : conventionalcommits
You can’t perform that action at this time.
0 commit comments