chore(core): publish docs when nx release runs (#19568)

Co-authored-by: James Henry <james@henry.sc>
This commit is contained in:
Isaac Mann 2023-11-02 14:05:28 -04:00 committed by GitHub
parent 61ad9c3d21
commit d1042cd194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }}