Skip to content

Commit 4d50591

Browse files
author
dannysteinbrecher
committed
fix: add npm plugin to semantic release and update Docker image tagging process
1 parent 2bdb6fb commit 4d50591

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/frontend-build-and-push.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ jobs:
8282
run: |
8383
cd frontend
8484
npm run semantic-release
85+
8586
NEW_VERSION=$(node -p "require('./package.json').version")
8687
FRONTEND_VERSION="frontend-v$NEW_VERSION"
8788
89+
8890
# Tag the existing image with the frontend-prefixed semantic version
8991
docker pull ${{ env.FRONTEND_IMAGE }}:${{ env.SHORT_SHA }}
9092
docker tag ${{ env.FRONTEND_IMAGE }}:${{ env.SHORT_SHA }} ${{ env.FRONTEND_IMAGE }}:$FRONTEND_VERSION

frontend/.releaserc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"plugins": [
55
"@semantic-release/commit-analyzer",
66
"@semantic-release/release-notes-generator",
7+
"@semantic-release/npm",
78
[
89
"@semantic-release/changelog",
910
{

0 commit comments

Comments
 (0)