2022-05-31 12:43:46 +00:00
|
|
|
name: Pre-release
|
2022-05-31 12:41:22 +00:00
|
|
|
|
2023-02-23 15:37:36 +00:00
|
|
|
permissions: read-all
|
|
|
|
|
2022-05-31 12:41:22 +00:00
|
|
|
on:
|
|
|
|
push:
|
2022-05-31 12:57:47 +00:00
|
|
|
branches:
|
2022-05-31 12:41:22 +00:00
|
|
|
- release-please-*
|
|
|
|
|
|
|
|
jobs:
|
2023-02-22 10:58:13 +00:00
|
|
|
check-changes:
|
2023-02-23 15:37:36 +00:00
|
|
|
uses: ./.github/workflows/changed-packages.yml
|
2023-02-22 10:58:13 +00:00
|
|
|
|
2022-05-31 12:55:46 +00:00
|
|
|
pre-release:
|
2023-02-22 10:58:13 +00:00
|
|
|
if: |
|
|
|
|
startsWith(github.event.head_commit.message, 'chore: release main') &&
|
|
|
|
contains(fromJSON(needs.check-changes.outputs.changes), 'puppeteer')
|
2023-03-06 13:17:29 +00:00
|
|
|
needs: check-changes
|
2022-05-31 12:41:22 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
steps:
|
2022-10-06 10:44:45 +00:00
|
|
|
- name: Check out repository
|
2023-10-04 18:16:10 +00:00
|
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
|
2022-06-01 13:49:41 +00:00
|
|
|
with:
|
2022-06-01 13:59:20 +00:00
|
|
|
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
2022-05-31 12:41:22 +00:00
|
|
|
- name: Install dependencies
|
2023-06-14 07:59:01 +00:00
|
|
|
run: npm ci
|
2023-09-05 07:34:37 +00:00
|
|
|
- name: Build all packages
|
2023-09-22 09:05:45 +00:00
|
|
|
env:
|
|
|
|
PUBLISH: 1
|
2023-09-05 07:34:37 +00:00
|
|
|
run: |
|
|
|
|
npm run build
|
|
|
|
- name: Build docs
|
2022-08-31 15:21:25 +00:00
|
|
|
env:
|
|
|
|
PUBLISH: 1
|
2022-05-31 12:41:22 +00:00
|
|
|
run: |
|
2022-07-01 11:52:39 +00:00
|
|
|
npm run docs
|
|
|
|
- name: Version docs
|
|
|
|
working-directory: ./website
|
|
|
|
run: |
|
2023-06-14 07:59:01 +00:00
|
|
|
npm ci
|
2022-10-05 12:17:03 +00:00
|
|
|
npm run docusaurus docs:version $(jq -r .version ../packages/puppeteer/package.json)
|
2022-08-09 11:13:05 +00:00
|
|
|
npm run archive
|
2022-09-05 10:03:10 +00:00
|
|
|
- name: Re-build docs after versioning
|
|
|
|
env:
|
|
|
|
PUBLISH: 1
|
|
|
|
run: |
|
|
|
|
npm run docs
|
2022-07-06 07:15:12 +00:00
|
|
|
- name: Format
|
|
|
|
run: npm run format
|
2023-06-14 07:59:01 +00:00
|
|
|
# Release-please does not update the package-lock
|
2023-02-20 16:21:07 +00:00
|
|
|
- name: Install to refresh package-lock
|
|
|
|
run: npm install
|
2022-06-01 13:49:41 +00:00
|
|
|
- name: Commit
|
2022-05-31 12:41:22 +00:00
|
|
|
run: |
|
2022-06-01 13:49:41 +00:00
|
|
|
git config --global user.name 'release-please[bot]'
|
|
|
|
git config --global user.email '55107282+release-please[bot]@users.noreply.github.com'
|
2022-07-01 11:52:39 +00:00
|
|
|
git add .
|
2023-03-06 13:38:37 +00:00
|
|
|
git commit -m 'chore: generate versioned docs' --no-verify
|
|
|
|
git push
|