File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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)
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
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
You can’t perform that action at this time.
0 commit comments