chore: build main docs after publishing
This commit is contained in:
parent
47c4f51ac7
commit
bc1326f16e
2
.github/workflows/pre-release.yml
vendored
2
.github/workflows/pre-release.yml
vendored
@ -18,7 +18,7 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
node utils/generate_version_file.js
|
node utils/generate_version_file.js
|
||||||
IS_PRE_RELEASE=1 npm run doc
|
IS_RELEASE=1 npm run doc
|
||||||
- name: Commit and push
|
- name: Commit and push
|
||||||
run: |
|
run: |
|
||||||
git config --global user.email "55107282+release-please[bot]@users.noreply.github.com"
|
git config --global user.email "55107282+release-please[bot]@users.noreply.github.com"
|
||||||
|
21
.github/workflows/publish.yml
vendored
21
.github/workflows/publish.yml
vendored
@ -17,8 +17,6 @@ jobs:
|
|||||||
run: npm install
|
run: npm install
|
||||||
- name: Build puppeteer
|
- name: Build puppeteer
|
||||||
run: npm run build
|
run: npm run build
|
||||||
- name: Generate release documentation
|
|
||||||
run: IS_RELEASE=1 npm run doc
|
|
||||||
- name: Publish puppeteer
|
- name: Publish puppeteer
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER}}
|
NPM_TOKEN: ${{secrets.NPM_TOKEN_PUPPETEER}}
|
||||||
@ -38,3 +36,22 @@ jobs:
|
|||||||
npm config set registry 'https://wombat-dressing-room.appspot.com/'
|
npm config set registry 'https://wombat-dressing-room.appspot.com/'
|
||||||
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
|
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
|
||||||
npm publish
|
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
|
||||||
|
@ -29,7 +29,6 @@ const YELLOW_COLOR = '\x1b[33m';
|
|||||||
const RESET_COLOR = '\x1b[0m';
|
const RESET_COLOR = '\x1b[0m';
|
||||||
|
|
||||||
const IS_RELEASE = Boolean(process.env.IS_RELEASE);
|
const IS_RELEASE = Boolean(process.env.IS_RELEASE);
|
||||||
const IS_PRE_RELEASE = Boolean(process.env.IS_PRE_RELEASE);
|
|
||||||
|
|
||||||
run();
|
run();
|
||||||
|
|
||||||
@ -40,7 +39,7 @@ async function run() {
|
|||||||
const messages = [];
|
const messages = [];
|
||||||
let changedFiles = false;
|
let changedFiles = false;
|
||||||
|
|
||||||
if (IS_RELEASE || IS_PRE_RELEASE) {
|
if (IS_RELEASE) {
|
||||||
const versions = await Source.readFile(
|
const versions = await Source.readFile(
|
||||||
path.join(PROJECT_DIR, 'versions.js')
|
path.join(PROJECT_DIR, 'versions.js')
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user