Skip to content

Commit 1aef493

Browse files
authored
fix(ci): publishing workflow improvements (#648)
* Remove pnpm option from publish workflow Removed the pnpm option from the setup-environment step. * fixup! * fixup! * fixup! * fixup! * fixup!
1 parent 57a7359 commit 1aef493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333
- name: Verify commit authenticity
3434
env:
3535
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
if: ${{ github.event_name != 'workflow_dispatch' }}
3637
run: |
3738
# Get commit data from GitHub API to verify its authenticity
3839
COMMIT_DATA=$(gh api repos/${{ github.repository }}/commits/$COMMIT_SHA)
@@ -66,7 +67,7 @@ jobs:
6667
run: |
6768
OLD_VERSION=$(git show $COMMIT_SHA~1:package.json | jq -r '.version')
6869
NEW_VERSION=$(jq -r '.version' "package.json")
69-
if [ "$OLD_VERSION" != "$NEW_VERSION" ]; then
70+
if [ "$OLD_VERSION" != "$NEW_VERSION" ] || [ "$EVENT_NAME" == "workflow_dispatch" ]; then
7071
echo "should_publish=true" >> $GITHUB_OUTPUT
7172
fi
7273
@@ -77,7 +78,6 @@ jobs:
7778
steps:
7879
- uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
7980
with:
80-
pnpm: true
8181
use-version-file: true
8282
registry-url: 'https://registry.npmjs.org'
8383

0 commit comments

Comments
 (0)