Skip to content

Commit 6a50cd7

Browse files
committed
Merge branch 'master' into update-url-import
2 parents 6ab8a0a + 1d6402a commit 6a50cd7

File tree

700 files changed

+51933
-16518
lines changed

Some content is hidden

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

700 files changed

+51933
-16518
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ demo
1717
CHANGELOG.md
1818
.changeset
1919
_site
20+
_site-dev
21+
dist-types
22+
/docs/_merged_data

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"
12+
day: "thursday"

.github/workflows/canary.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,44 +8,51 @@ on:
88

99
jobs:
1010
release:
11+
timeout-minutes: 30
1112
# Prevents changesets action from creating a PR on forks
1213
if: github.repository == 'modernweb-dev/web'
1314
name: Pre-release
14-
runs-on: ubuntu-latest
15+
runs-on: ubuntu-22.04
1516
steps:
1617
- name: Checkout Repo
17-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1819
with:
1920
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
2021
fetch-depth: 0
2122

22-
- name: Setup Node.js 12
23-
uses: actions/setup-node@v2
23+
- name: Setup Node.js
24+
uses: actions/setup-node@v4
2425
env:
2526
FORCE_COLOR: 0
2627
with:
27-
node-version: 12.x
28+
node-version: '20'
29+
cache: 'npm'
2830
registry-url: 'https://registry.npmjs.org'
29-
cache: 'yarn'
31+
32+
# Set up GitHub Actions caching for Wireit.
33+
- uses: google/wireit@setup-github-actions-caching/v2
3034

3135
- name: Install Dependencies
32-
run: yarn --frozen-lockfile
36+
run: npm ci
3337

3438
- name: Build packages
35-
run: yarn build
39+
run: npm run build
40+
41+
- name: Build types for js packages
42+
run: npm run types
3643

37-
- name: Build for production
38-
run: yarn build:production
44+
- name: Build specific packages for production
45+
run: npm run build:production
3946

4047
- name: Version canary release
41-
run: yarn changeset version --snapshot canary
48+
run: npx changeset version --snapshot canary
4249

4350
- name: Release canary snapshots
4451
id: changesets
4552
uses: changesets/action@master
4653
with:
4754
# This expects you to have a script called release which does a build for your packages and calls changeset publish
48-
publish: yarn changeset publish --tag canary
55+
publish: npx changeset publish --tag canary
4956
env:
5057
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5158
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Lint
2+
3+
on: pull_request
4+
5+
env:
6+
FORCE_COLOR: true
7+
8+
jobs:
9+
linux:
10+
timeout-minutes: 30
11+
name: Linux
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup Node 20
18+
uses: actions/setup-node@v4
19+
env:
20+
FORCE_COLOR: 0
21+
with:
22+
node-version: 20
23+
cache: npm
24+
25+
- name: Install Dependencies
26+
run: npm ci
27+
28+
- name: Lint
29+
run: npm run lint

.github/workflows/release.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,51 @@ on:
77

88
jobs:
99
release:
10+
timeout-minutes: 30
1011
# Prevents changesets action from creating a PR on forks
1112
if: github.repository == 'modernweb-dev/web'
1213
name: Release
13-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
1415
steps:
1516
- name: Checkout Repo
16-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1718
with:
1819
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1920
fetch-depth: 0
2021

2122
- name: Setup Node.js
22-
uses: actions/setup-node@v2
23+
uses: actions/setup-node@v4
2324
env:
2425
FORCE_COLOR: 0
2526
with:
26-
node-version: '16'
27-
cache: 'yarn'
27+
node-version: '20'
28+
cache: 'npm'
2829
registry-url: 'https://registry.npmjs.org'
2930

31+
# Set up GitHub Actions caching for Wireit.
32+
- uses: google/wireit@setup-github-actions-caching/v2
33+
3034
- name: Install Dependencies
31-
run: yarn --frozen-lockfile
35+
run: npm ci
3236

3337
- name: Build packages
34-
run: yarn build
38+
run: npm run build
39+
40+
- name: Build types for js packages
41+
run: npm run types
3542

36-
- name: Build for production
37-
run: yarn build:production
43+
- name: Build specific packages for production
44+
run: npm run build:production
3845

3946
- name: Sync blog to dev.to
40-
run: DEV_TO_GIT_TOKEN=${{ secrets.DEV_TO_GIT_TOKEN }} yarn run dev-to-git
47+
run: DEV_TO_GIT_TOKEN=${{ secrets.DEV_TO_GIT_TOKEN }} npm run dev-to-git
4148

4249
- name: Create Release Pull Request or Publish to npm
4350
id: changesets
4451
uses: changesets/action@master
4552
with:
4653
# This expects you to have a script called release which does a build for your packages and calls changeset publish
47-
publish: yarn release
54+
publish: npm run release
4855
env:
4956
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5057
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/verify-browser.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Browser tests
2+
3+
on: pull_request
4+
5+
env:
6+
FORCE_COLOR: true
7+
8+
jobs:
9+
verify-linux:
10+
timeout-minutes: 30
11+
name: Linux
12+
runs-on: ubuntu-22.04
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Setup Node 20
18+
uses: actions/setup-node@v4
19+
env:
20+
FORCE_COLOR: 0
21+
with:
22+
node-version: 20
23+
cache: npm
24+
25+
- name: Install Dependencies
26+
run: npm ci
27+
28+
- name: Build packages
29+
run: npm run build
30+
31+
# build for production in CI to make sure tests can run with production build
32+
- name: Build specific packages for production
33+
run: npm run build:production
34+
35+
- name: Test
36+
run: npm run test:browser

.github/workflows/verify-browserstack.yml

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

.github/workflows/verify-node.yml

Lines changed: 62 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Verify Node
1+
name: Node tests
22

33
on: pull_request
44

@@ -7,41 +7,86 @@ env:
77

88
jobs:
99
verify-linux:
10-
name: Verify linux
11-
runs-on: ubuntu-latest
10+
timeout-minutes: 30
11+
name: Linux
12+
runs-on: ubuntu-22.04
1213
strategy:
14+
fail-fast: false
1315
matrix:
1416
node-version:
15-
- '14'
16-
- '16'
1717
- '18'
18+
- '20'
19+
- '22'
20+
- 'latest'
1821

1922
steps:
20-
- uses: actions/checkout@v2
23+
- uses: actions/checkout@v4
2124

2225
- name: Setup Node ${{ matrix.node-version }}
23-
uses: actions/setup-node@v2
26+
uses: actions/setup-node@v4
2427
env:
2528
FORCE_COLOR: 0
2629
with:
2730
node-version: ${{ matrix.node-version }}
28-
cache: yarn
31+
cache: npm
2932

3033
- name: Install Playwright dependencies
31-
run: npx playwright install-deps
34+
run: npx playwright install --with-deps
3235

33-
- name: Install dependencies
34-
run: yarn --frozen-lockfile
36+
# Set up GitHub Actions caching for Wireit.
37+
- uses: google/wireit@setup-github-actions-caching/v2
38+
39+
- name: Install Dependencies
40+
run: npm ci
3541

3642
- name: Build packages
37-
run: yarn build
43+
run: npm run build
44+
45+
- name: Build types for js packages
46+
run: npm run types
3847

3948
# build for production in CI to make sure tests can run with production build
40-
- name: Build for production
41-
run: yarn build:production
49+
- name: Build specific packages for production
50+
run: npm run build:production
4251

43-
- name: Lint
44-
run: yarn lint
52+
- name: Test
53+
run: npm run test:node
54+
55+
verify-windows:
56+
timeout-minutes: 30
57+
name: Windows
58+
runs-on: windows-2022
59+
steps:
60+
- name: Set git to use LF
61+
run: |
62+
git config --global core.autocrlf false
63+
git config --global core.eol lf
64+
65+
- uses: actions/checkout@v4
66+
67+
- name: Setup Node '20'
68+
uses: actions/setup-node@v4
69+
env:
70+
FORCE_COLOR: 0
71+
with:
72+
node-version: '20'
73+
cache: 'npm'
74+
75+
- name: Install Playwright dependencies
76+
run: npx playwright install --with-deps
77+
78+
# Set up GitHub Actions caching for Wireit.
79+
- uses: google/wireit@setup-github-actions-caching/v2
80+
81+
- name: Install Dependencies
82+
run: npm ci
83+
84+
- name: Build
85+
run: npm run build
86+
87+
# build for production in CI to make sure tests can run with production build
88+
- name: Build specific packages for production
89+
run: npm run build:production
4590

4691
- name: Test
47-
run: yarn test
92+
run: npm run test:node

0 commit comments

Comments
 (0)