chore: build main docs after publishing

This commit is contained in:
Randolf Jung 2022-05-31 15:38:20 +02:00
parent 47c4f51ac7
commit bc1326f16e
3 changed files with 21 additions and 5 deletions

View File

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

View File

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

View File

@ -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')
);