diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 0efb718d83e..b46aed15bee 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -18,7 +18,7 @@ jobs: - name: Build run: | node utils/generate_version_file.js - IS_PRE_RELEASE=1 npm run doc + IS_RELEASE=1 npm run doc - name: Commit and push run: | git config --global user.email "55107282+release-please[bot]@users.noreply.github.com" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ead3564e267..595b037473a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,8 +17,6 @@ jobs: run: npm install - name: Build puppeteer run: npm run build - - name: Generate release documentation - run: IS_RELEASE=1 npm run doc - name: Publish puppeteer env: NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER}} @@ -38,3 +36,22 @@ jobs: npm config set registry 'https://wombat-dressing-room.appspot.com/' npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}' npm publish + + post-publish: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Install dependencies + run: npm install + - name: Build main docs + run: npm run doc + - name: Commit and push + run: | + git config --global user.email "55107282+release-please[bot]@users.noreply.github.com" + git config --global user.name "release-please[bot]" + git add -A + git commit -m "chore: build main docs" + git push diff --git a/utils/doclint/cli.js b/utils/doclint/cli.js index 91de816fa34..6ab4a29bf4c 100755 --- a/utils/doclint/cli.js +++ b/utils/doclint/cli.js @@ -29,7 +29,6 @@ const YELLOW_COLOR = '\x1b[33m'; const RESET_COLOR = '\x1b[0m'; const IS_RELEASE = Boolean(process.env.IS_RELEASE); -const IS_PRE_RELEASE = Boolean(process.env.IS_PRE_RELEASE); run(); @@ -40,7 +39,7 @@ async function run() { const messages = []; let changedFiles = false; - if (IS_RELEASE || IS_PRE_RELEASE) { + if (IS_RELEASE) { const versions = await Source.readFile( path.join(PROJECT_DIR, 'versions.js') );