chore(core): publish docs when nx release runs (#19568)
Co-authored-by: James Henry <james@henry.sc>
This commit is contained in:
parent
61ad9c3d21
commit
d1042cd194
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
@ -234,6 +234,12 @@ jobs:
|
||||
git checkout -b publish/$GITHUB_REF_NAME
|
||||
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN
|
||||
pnpm nx-release --local=false $GITHUB_REF_NAME
|
||||
- name: Trigger Docs Release
|
||||
if: ${{ !github.event.release.prerelease }}
|
||||
run: |
|
||||
# We force recreate the branch in order to always be up to date and avoid merge conflicts within the automated workflow
|
||||
git branch -f website
|
||||
git push -f origin website
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user