This commit is contained in:
2026-01-05 12:58:43 -08:00
parent 27c11233da
commit 8aedcefc54
2 changed files with 4 additions and 3 deletions

View File

@@ -72,10 +72,11 @@ runs:
echo "Event name: ${{ github.event_name }}" echo "Event name: ${{ github.event_name }}"
echo "Prerelease input value: '${{ inputs.prerelease }}'" echo "Prerelease input value: '${{ inputs.prerelease }}'"
shell: bash shell: bash
# This is being skipped on Gitea, I think it is a bug.
- name: "If no version is found, get the latest version for the package if we didn't already look for it." - name: "If no version is found, get the latest version for the package if we didn't already look for it."
uses: act/common/gitea/gitea-query-package-versions-latest@master uses: act/common/gitea/gitea-query-package-versions-latest@master
id: giteaFallback id: giteaFallback
if: ${{ !steps.gitea.outputs.version && inputs.prerelease != 'false' && always() }} if: ${{ !steps.gitea.outputs.version && inputs.prerelease != 'false' }}
with: with:
name: ${{ inputs.name }} name: ${{ inputs.name }}
url: ${{ inputs.url }} url: ${{ inputs.url }}
@@ -86,7 +87,7 @@ runs:
filterIsExpression: "true" filterIsExpression: "true"
prerelease: "false" prerelease: "false"
- name: "Debug - Fallback query results" - name: "Debug - Fallback query results"
if: ${{ !steps.gitea.outputs.version && inputs.prerelease != 'false' && always() }} if: ${{ !steps.gitea.outputs.version && inputs.prerelease != 'false' }}
run: | run: |
echo "Fallback filter: '^${{ steps.base.outputs.majorMinorPatchVersion }}'" echo "Fallback filter: '^${{ steps.base.outputs.majorMinorPatchVersion }}'"
echo "Fallback found version: '${{ steps.giteaFallback.outputs.version }}'" echo "Fallback found version: '${{ steps.giteaFallback.outputs.version }}'"

View File

@@ -51,7 +51,7 @@ runs:
working-directory: ${{ inputs.workingDirectory }} working-directory: ${{ inputs.workingDirectory }}
shell: bash shell: bash
- name: "Update package version" - name: "Update package version"
run: npm version ${{ inputs.version }} --no-git-tag-version run: npm version ${{ inputs.version }} --no-git-tag-version --allow-same-version
working-directory: ${{ inputs.workingDirectory }} working-directory: ${{ inputs.workingDirectory }}
shell: bash shell: bash
- name: "Build package" - name: "Build package"