Skip to content

Commit 24df065

Browse files
docs(README): fix yml files for OIDC auth
1 parent 89812e6 commit 24df065

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/nodejs.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,5 @@ jobs:
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

.releaserc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ plugins:
1818
- - '@semantic-release/changelog'
1919
- changelogTitle: "# Changelog\n\nAll 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

2424
preset: conventionalcommits

0 commit comments

Comments
 (0)