Skip to content

Commit c4cbd0c

Browse files
committed
Merge branch 'main' into dist-docs
2 parents 8fe8eb7 + dcbb852 commit c4cbd0c

File tree

1,133 files changed

+56216
-3323
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,133 files changed

+56216
-3323
lines changed

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
- all-globs-to-any-file:
44
- "features/*.yml"
55
- "!features/*.yml.dist"
6+
7+
"documentation":
8+
- changed-files:
9+
- all-globs-to-any-file:
10+
- "**/*.md"
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Publish web-features
2+
3+
on:
4+
push:
5+
# Tags on the form v1.2.3 are for releases. Any other tags are ignored.
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+'
8+
9+
env:
10+
package_dir: "packages/web-features"
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version-file: .node-version
20+
cache: npm
21+
- run: npm ci
22+
- run: npm test
23+
artifacts:
24+
if: github.repository == 'web-platform-dx/web-features'
25+
runs-on: ubuntu-latest
26+
needs: "test"
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version-file: .node-version
32+
cache: npm
33+
registry-url: "https://registry.npmjs.org"
34+
- run: npm ci
35+
- run: npm run build
36+
- run: npm run build:extended
37+
- run: gh release upload ${{ github.ref_name }} packages/web-features/data.json schemas/data.schema.json data.extended.json
38+
env:
39+
GH_TOKEN: ${{ github.token }}
40+
publish:
41+
if: github.repository == 'web-platform-dx/web-features'
42+
runs-on: ubuntu-latest
43+
needs: "test"
44+
steps:
45+
- uses: actions/checkout@v4
46+
- uses: actions/setup-node@v4
47+
with:
48+
node-version-file: .node-version
49+
cache: npm
50+
registry-url: "https://registry.npmjs.org"
51+
- run: npm ci
52+
- run: npm run build
53+
- run: npm publish
54+
working-directory: ${{ env.package_dir }}
55+
env:
56+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- run: npm ci
1919
- run: npm run build
2020
- name: Pretty print built JSON
21-
run: jq . packages/web-features/index.json
21+
run: jq . packages/web-features/data.json
2222
test:
2323
runs-on: ubuntu-latest
2424
steps:

.github/workflows/refresh_dist.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/remove_refresh_dist_label.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update Draft Features
2+
3+
on:
4+
# Runs at midnight on Mondays 05:30 UTC, or manually triggered
5+
schedule:
6+
- cron: '30 5 * * 1'
7+
workflow_dispatch:
8+
9+
jobs:
10+
update-drafts:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version-file: .node-version
17+
cache: npm
18+
- run: npm ci
19+
- run: rm features/draft/spec/*.yml features/draft/spec/*.dist
20+
- run: npm run update-drafts
21+
- run: npm run dist
22+
- name: Commit changes
23+
run: |
24+
git config --local user.email "[email protected]"
25+
git config --local user.name "GitHub Action"
26+
git add -A
27+
git commit -m "Update draft features weekly" || echo "No changes to commit"
28+
- name: Create Pull Request
29+
uses: peter-evans/create-pull-request@v6
30+
with:
31+
commit-message: Update draft features weekly
32+
title: "[GitHub Actions] Update draft features weekly"
33+
body: "This is an auto-generated PR with draft features by spec updates."
34+
branch: update-draft-features-${{ github.run_number }}
35+
delete-branch: true

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ node_modules/
33
packages/compute-baseline/dist/
44
packages/web-features/index.d.ts
55
packages/**/LICENSE.txt
6+
packages/web-features/data.json
7+
packages/web-features/data.schema.json
68
packages/web-features/types.ts
7-
index.json
9+
data.extended.json
810
index.js

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
18.20

.prettierignore

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
1-
# Exclude all files (but not directories)
2-
/**/*.*
1+
# Exclude any generated files/folders
2+
/**/*.dist
3+
/**/dist
34

4-
# Opt-ins
5-
!GOVERNANCE.md
6-
7-
!/features/*.yml
8-
/features/*.yml.dist
9-
10-
!/packages/compute-baseline/**
11-
!/packages/web-features/**
12-
13-
!/scripts/build.ts
14-
!/scripts/dist.ts
15-
!/scripts/feature-init.ts
16-
!/scripts/find-troublesome-ancestors.ts
17-
!/scripts/release.ts
5+
# Files/folders that have not yet been formatted
6+
# TODO: Format all these files
7+
README.md
8+
index.ts
9+
types.ts
10+
2022-backgrounder.md
11+
towards-features.md
12+
/.github/**
13+
/docs
14+
!/docs/publishing.md
15+
/features/draft
16+
/schemas
17+
/scripts/caniuse.ts
18+
/scripts/schema.ts
19+
/scripts/specs.ts

GOVERNANCE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ Inactive _Peers_ (no activity on the project for months or more) might be marked
7575

7676
#### List of current Peers
7777

78+
- Adriana Jara ([@tropicadri](https://github.com/tropicadri))
7879
- Brian Kardell ([@bkardell](https://github.com/bkardell))
7980
- Patrick Brosset ([@captainbrosset](https://github.com/captainbrosset))
81+
- Pete LePage ([@petele](https://github.com/petele))
82+
- Mariko Kosaka ([@kosamari](https://github.com/kosamari))
8083

8184
A _Peer_ who shows an above-average level of contribution to the project, particularly with respect to its strategic direction and long-term health, may be nominated to become an _Owner_, described below.
8285

0 commit comments

Comments
 (0)