Skip to content

publish

publish #21

Workflow file for this run

name: publish
on:
release:
# both release and prereleases
types: [published]
# support manual release in case something goes wrong and needs to be repeated or tested
workflow_dispatch:
inputs:
tag:
description: github tag that needs to publish
type: string
required: true
jobs:
getDistTag:
outputs:
tag: ${{ steps.distTag.outputs.tag }}
version: ${{ steps.distTag.outputs.version }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name || inputs.tag }}
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
id: distTag
getMajorVersion:
needs: [getDistTag]

Check failure on line 27 in .github/workflows/onRelease.yml

View workflow run for this annotation

GitHub Actions / publish

Invalid workflow file

The workflow is not valid. .github/workflows/onRelease.yml (Line: 27, Col: 5): Required property is missing: runs-on
outputs:
major: ${{ steps.parsedVersion.outputs.major }}
steps:
- uses: salesforcecli/github-workflows/.github/actions/parse-semver@main
with:
input_string: ${{ needs.getDistTag.outputs.version }}
npm:
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
needs: [getDistTag, getMajorVersion]
with:
#ctc: true
sign: true
tag: ${{ needs.getDistTag.outputs.tag || (needs.getMajorVersion.outputs.major == '1') && 'latest' || 'next' }}
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
secrets: inherit