In Gitlab CI I want to publish packages with nx release.
When I run nx release -y it bumps versions, adds changelogs and pushes commits+tags, but tryes to publish previous version (like it's not updated).
If I run this pipeline again (in next commit), new versions will be published. So I not able to do it in single gitlab CI job.
I also tried following:
- nx release --skip-publish
# pull with rebase to avoid conflicts
- git pull --rebase origin $BRANCH
- git push origin $BRANCH --follow-tags
# here I tries to print changed package.json - IT HAVE NEW VERSION
- cat '....';
# This commant tries to publish old versions, like i have not run "nx release --skip-publish"
- nx release publish
Current Behavior
In Gitlab CI I want to publish packages with
nx release
.When I run
nx release -y
it bumps versions, adds changelogs and pushes commits+tags, but tryes to publish previous version (like it's not updated).If I run this pipeline again (in next commit), new versions will be published. So I not able to do it in single gitlab CI job.
I also tried following:
Expected Behavior
I could publish version in one job.
GitHub Repo
No response
Steps to Reproduce
1.
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response