Bump baseline-browser-mapping from 2.10.10 to 2.10.12 #1037
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Docusaurus Documentation | |
| on: | |
| pull_request_target: | |
| types: [labeled] | |
| push: | |
| branches: ["master", "main"] | |
| permissions: | |
| checks: write | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| build-docusaurus: | |
| if: github.event_name == 'push' || github.event.label.name == 'BUILD DOCUSAURUS' | |
| timeout-minutes: 1440 | |
| runs-on: self-hosted | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
| fetch-depth: 0 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Build Docusaurus | |
| run: | | |
| npm run write-translations -- --locale de | |
| npm run write-translations -- --locale es | |
| npm run write-translations -- --locale fr | |
| npm run write-translations -- --locale ar | |
| npm run write-translations -- --locale pt | |
| npm run write-translations -- --locale th | |
| npm run write-translations -- --locale pl | |
| npm run write-translations -- --locale ja | |
| npm run write-translations -- --locale sv | |
| npm run write-translations -- --locale it | |
| npm run write-translations -- --locale nl | |
| npm run write-translations -- --locale zh | |
| rm -rf build | |
| npm run docusaurus clear | |
| rm -f build.tar | |
| npm run build | |
| tar cf build.tar -C build --transform 's~^\./~~' . | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: build | |
| path: build.tar | |
| retention-days: 90 | |
| - name: Remove label | |
| if: always() && github.event_name == 'pull_request_target' | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| try { | |
| await github.rest.issues.removeLabel({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| issue_number: context.payload.pull_request.number, | |
| name: 'BUILD DOCUSAURUS' | |
| }); | |
| } catch (error) { | |
| core.warning(`Could not remove label: ${error.message}`); | |
| } |