Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 4 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,22 @@ on:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v7

- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v7
with:
node-version: 18.x
node-version: 26

- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v3
uses: actions/cache@v6
with:
path: node_modules
key: node_modules-${{ hashFiles('package.json', 'package-lock.json') }}
Expand All @@ -40,18 +34,3 @@ jobs:

- name: npm test
run: npm test

- name: Setup Pages
if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v2

- name: Upload artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v1
with:
path: compiled-docs

- name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v1
53 changes: 53 additions & 0 deletions .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Deploy GitHub Pages

on:
push:
branches:
- "main"

permissions:
contents: read
pages: write
id-token: write

jobs:
github-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v7

- name: Use Node.js
uses: actions/setup-node@v7
with:
node-version: 26

- name: Cache node_modules
id: cache-node_modules
uses: actions/cache@v6
with:
path: node_modules
key: node_modules-${{ hashFiles('package.json', 'package-lock.json') }}

- name: npm ci
if: steps.cache-node_modules.outputs.cache-hit != 'true'
run: npm ci

- name: npm run compile
run: npm run compile

- name: Setup Pages
uses: actions/configure-pages@v6

- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: compiled-docs

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ If you’d like to make a pull request, here’s what you need to know.

## Requirements

- [Node.js] 18 with npm 8.
- [Node.js] 26 with npm 11.
- Latest [Chrome] or [Chromium].
- Latest [Firefox Developer Edition] or [Firefox Nightly].

Expand Down
89 changes: 0 additions & 89 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/build-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function makeSourceCodeReadme(): string {
return `
Steps to reproduce this build:

1. Install [Node.js] 18 with npm 8.
1. Install [Node.js] 26 with npm 11.
2. Run \`npm ci\`.
3. Run \`npm run build:firefox\`.
4. Output is now available in \`dist-firefox/\`.
Expand Down