Skip to content
This repository was archived by the owner on Jul 2, 2026. It is now read-only.

Commit 218d9c2

Browse files
authored
fix: remove redundant call and add fallback latest when no tag returned (#78)
1 parent fa4573c commit 218d9c2

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ jobs:
4545
- name: Build
4646
run: npm run build
4747

48-
- name: Determine npm dist-tag
49-
uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
50-
id: distTag
51-
5248
- name: Publish to npm
53-
run: npm publish --access public --tag ${{ inputs.distTag || steps.distTag.outputs.tag }}
49+
run: npm publish --access public --tag ${{ inputs.distTag }}
5450
env:
5551
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/onRelease.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ jobs:
1616
getDistTag:
1717
outputs:
1818
tag: ${{ steps.distTag.outputs.tag }}
19-
gitTag: ${{ github.event.release.tag_name || inputs.tag }}
2019
runs-on: ubuntu-latest
2120
steps:
2221
- uses: actions/checkout@v4
@@ -29,7 +28,7 @@ jobs:
2928
uses: ./.github/workflows/npm-publish.yml
3029
needs: [getDistTag]
3130
with:
32-
tag: ${{ needs.getDistTag.outputs.gitTag }}
33-
distTag: ${{ needs.getDistTag.outputs.tag }}
31+
tag: ${{ github.event.release.tag_name || inputs.tag }}
32+
distTag: ${{ needs.getDistTag.outputs.tag || 'latest' }}
3433
nodeVersion: 'lts/*'
3534
secrets: inherit

0 commit comments

Comments
 (0)