Skip to content

Commit 9341ee8

Browse files
Review deployment
1 parent 74272a7 commit 9341ee8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/node-ci-build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
release:
1515
name: 'Semantic Release NodeJS'
1616
runs-on: ubuntu-latest
17-
environment: main
1817
strategy:
1918
matrix:
2019
node-version: [ '18.x' ]
@@ -50,10 +49,15 @@ jobs:
5049
run: |
5150
NEW_TAG=$( git describe --tags --abbrev=0 "${{ inputs.commit_sha }}")
5251
echo "NEW_TAG=$NEW_TAG" >> "$GITHUB_OUTPUT"
52+
review-docker:
53+
name: 'Review Main Deployment'
54+
runs-on: ubuntu-latest
55+
if: github.ref == 'refs/heads/develop' #testing
56+
environment: main
5357
release-docker:
5458
name: 'Build and Release Docker Image'
5559
runs-on: ubuntu-latest
56-
needs: release
60+
needs: [release, review-docker]
5761
env:
5862
IMAGE_NAME: ${{ github.repository }}:${{ needs.release.outputs.NEW_TAG }}
5963
steps:

0 commit comments

Comments
 (0)