9.7.0 #138
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: publish | |
# when a github release happens, publish an npm package, | |
on: | |
release: | |
types: [published] | |
# support manual release | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: tag that needs to publish | |
type: string | |
required: true | |
jobs: | |
getDistTag: | |
outputs: | |
tag: ${{ steps.distTag.outputs.tag }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.release.tag_name || inputs.tag }} | |
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main | |
id: distTag | |
npm: | |
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main | |
needs: [getDistTag] | |
with: | |
ctc: false | |
tag: ${{ needs.getDistTag.outputs.tag || 'latest' }} | |
githubTag: ${{ github.event.release.tag_name || inputs.tag }} | |
secrets: inherit |