docs: js release notes for v1.45 (#31323) #38462
This file contains 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: "infra" | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
pull_request: | |
branches: | |
- main | |
- release-* | |
env: | |
ELECTRON_SKIP_BINARY_DOWNLOAD: 1 | |
jobs: | |
doc-and-lint: | |
name: "docs & lint" | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: npm ci | |
- run: npm run build | |
- run: npx playwright install-deps | |
- run: npx playwright install | |
- run: npm run lint | |
- name: Verify clean tree | |
run: | | |
if [[ -n $(git status -s) ]]; then | |
echo "ERROR: tree is dirty after npm run build:" | |
git diff | |
exit 1 | |
fi | |
- name: Audit prod NPM dependencies | |
run: npm audit --omit dev | |
lint-snippets: | |
name: "Lint snippets" | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- run: npm ci | |
- run: pip install -r utils/doclint/linting-code-snippets/python/requirements.txt | |
- run: node utils/doclint/linting-code-snippets/cli.js |