Skip to content

Commit 5af4513

Browse files
committed
Reorder "publish" workflow to push changes after the publishing to NPM
1 parent 5231465 commit 5af4513

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,17 +78,17 @@ jobs:
7878
echo "Created tag: $TAG"
7979
echo "tag=$TAG" >> "$GITHUB_OUTPUT"
8080
81-
- name: Push changes to master
82-
if: ${{ !inputs.dryRun }}
83-
run: |
84-
git push origin master --follow-tags
85-
8681
- name: Publish to npm
8782
env:
8883
DRY_RUN_FLAG: ${{ inputs.dryRun && '--dry-run' || '' }}
8984
TAG_FLAG: ${{ startsWith(inputs.bump, 'pre') && format('--tag {0}', inputs.npmPreTag) || ''}}
9085
run: npm publish --provenance --access=public $DRY_RUN_FLAG $TAG_FLAG
9186

87+
- name: Push changes to master
88+
if: ${{ !inputs.dryRun }}
89+
run: |
90+
git push origin master --follow-tags
91+
9292
- name: Create GitHub Release
9393
if: ${{ !inputs.dryRun }}
9494
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)