Skip to content

Commit

Permalink
feat(workflows): add semantic release prepare versions step
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegDO committed Apr 22, 2024
1 parent 344d4d6 commit 6a33be9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ jobs:
- id: microservices
run: npx @lomray/microservices-cli microservices-list

- name: Iterate through all microservice and get highest version
run: npx @lomray/microservices-cli semantic-release --dry-run
env:
GIT_BRANCH: ${{ needs.prepare.outputs.branch }}
PUBLISH_PACKAGE: ${{ secrets.PUBLISH_PACKAGE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PERFORM_PROD_PLUGIN: 1

- name: Branch name & docker tag & latest release sha
id: other-params
shell: bash
Expand Down Expand Up @@ -70,7 +79,6 @@ jobs:
PUBLISH_PACKAGE: ${{ secrets.PUBLISH_PACKAGE }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PERFORM_PROD_PLUGIN: 1

- name: Archive microservices artifacts
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 6a33be9

Please sign in to comment.