Skip to content

Commit 7725875

Browse files
committed
fix(workflow): update semantic-release configuration and output variables
1 parent 7628854 commit 7725875

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
# id-token: write # Needed for OIDC trusted publishing (if not using NPM_TOKEN)
1818
outputs:
1919
# Output whether a new release was published
20-
new_release_published: ${{ steps.semantic.outputs.new-release-published }}
21-
release_version: ${{ steps.semantic.outputs.release-version }}
20+
new_release_published: ${{ steps.semantic.outputs.new_release_published }}
21+
new_release_version: ${{ steps.semantic.outputs.new_release_version }}
2222
steps:
2323
- name: Checkout code
2424
# Need fetch-depth: 0 for semantic-release to analyze all relevant commits
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: Run semantic-release
4444
id: semantic # Give step an ID to reference its outputs
45-
run: codfish/semantic-release-action@v3
45+
uses: cycjimmy/semantic-release-action@v4
4646
env:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -66,7 +66,7 @@ jobs:
6666
uses: actions/checkout@v4
6767
with:
6868
# Use the tag name determined by the release job
69-
ref: ${{ needs.release.outputs.release_version }}
69+
ref: v${{ needs.release.outputs.new_release_version }}
7070

7171
- name: Set up Docker Buildx
7272
uses: docker/setup-buildx-action@v3
@@ -85,10 +85,10 @@ jobs:
8585
images: ghcr.io/${{ github.repository }}
8686
# Use the version from the semantic-release output
8787
tags: |
88-
type=raw,value=${{ needs.release.outputs.release_version }} # e.g., v1.4.1
89-
type=semver,pattern={{version}},value=${{ needs.release.outputs.release_version }} # e.g., 1.4.1
90-
type=semver,pattern=v{{major}}.{{minor}},value=${{ needs.release.outputs.release_version }} # e.g., v1.4
91-
type=semver,pattern=v{{major}},value=${{ needs.release.outputs.release_version }} # e.g., v1
88+
type=raw,value=${{ needs.release.outputs.new_release_version }} # e.g., v1.4.1
89+
type=semver,pattern={{version}},value=${{ needs.release.outputs.new_release_version }} # e.g., 1.4.1
90+
type=semver,pattern=v{{major}}.{{minor}},value=${{ needs.release.outputs.new_release_version }} # e.g., v1.4
91+
type=semver,pattern=v{{major}},value=${{ needs.release.outputs.new_release_version }} # e.g., v1
9292
type=raw,value=latest,enable=true # Always tag latest on main branch release
9393
9494
- name: Build and push Docker image

0 commit comments

Comments
 (0)