mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: build main docs after publishing
This commit is contained in:
2
.github/workflows/pre-release.yml
vendored
2
.github/workflows/pre-release.yml
vendored
@@ -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"
|
||||
|
||||
21
.github/workflows/publish.yml
vendored
21
.github/workflows/publish.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user