diff --git a/.github/workflows/release-common.yml b/.github/workflows/release-common.yml index 1317014e..758aa284 100644 --- a/.github/workflows/release-common.yml +++ b/.github/workflows/release-common.yml @@ -71,10 +71,9 @@ jobs: - name: Publish to container registry run: | echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin - if [ -n "$RELEASE_VERSION" ]; then - docker build . --tag ghcr.io/fhswf/bookme-backend:$RELEASE_VERSION --tag ghcr.io/fhswf/bookme-backend:latest --target backend - docker push -a ghcr.io/fhswf/bookme-backend:$RELEASE_VERSION - fi + docker build . --tag ghcr.io/fhswf/bookme-backend:$RELEASE_VERSION --tag ghcr.io/fhswf/bookme-backend:latest --target backend + docker push -a ghcr.io/fhswf/bookme-backend:$RELEASE_VERSION + env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/backend/package.json b/backend/package.json index 316287a1..ad55bf2d 100644 --- a/backend/package.json +++ b/backend/package.json @@ -29,7 +29,7 @@ "dependencies": { "bcryptjs": "^2.4.3", "body-parser": "^1.20.1", - "common": "1.0.0", + "common": "workspace:^", "concurrently": "^8.2.1", "cookie-parser": "^1.4.5", "cors": "^2.8.5",