Skip to content

Commit e33feaa

Browse files
committed
Switch from yarn -> npm, custom action -> dependabot
1 parent 3d60849 commit e33feaa

13 files changed

+8182
-7760
lines changed

.github/dependabot.yml

+21
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
11
version: 2
2+
23
updates:
34
- package-ecosystem: github-actions
45
directory: '/'
56
schedule:
67
interval: weekly
78
time: '04:00'
89
timezone: America/New_York
10+
11+
- package-ecosystem: npm
12+
directory: '/'
13+
versioning-strategy: increase
14+
schedule:
15+
interval: weekly
16+
time: '04:00'
17+
timezone: America/New_York
18+
groups:
19+
prod:
20+
dependency-type:
21+
- 'production'
22+
dev:
23+
dependency-type:
24+
- 'development'
25+
ignore:
26+
- dependency-name: '@types/node'
27+
- dependency-name: 'node-fetch'
28+
versions:
29+
- 3.x

.github/workflows/test-wpt.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- uses: actions/setup-node@v4
5252
with:
5353
node-version-file: .nvmrc
54-
cache: yarn
54+
cache: npm
5555
- uses: actions/setup-python@v5
5656
with:
5757
python-version: '3.x'
@@ -66,8 +66,8 @@ jobs:
6666

6767
- name: Build polyfill
6868
run: |
69-
yarn install --immutable
70-
yarn build:wpt
69+
npm install
70+
npm run build:wpt
7171
7272
- name: Setup WPT
7373
run: |
@@ -83,7 +83,7 @@ jobs:
8383
./wpt serve --inject-script=${{ github.workspace }}/dist/css-anchor-positioning-wpt.umd.cjs &
8484
cd ..
8585
cp -r wpt-results/test-results .
86-
yarn test:wpt
86+
npm run test:wpt
8787
8888
- name: Push to WPT results branch
8989
run: |

.github/workflows/test.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ jobs:
1818
- uses: actions/setup-node@v4
1919
with:
2020
node-version-file: .nvmrc
21-
cache: yarn
21+
cache: npm
2222
- name: Install dependencies
2323
run: |
24-
yarn install --immutable
24+
npm install
2525
npx playwright install --with-deps
26-
- run: yarn test:ci
26+
- run: npm run test:ci
2727

2828
lint:
2929
name: Lint
@@ -33,8 +33,8 @@ jobs:
3333
- uses: actions/setup-node@v4
3434
with:
3535
node-version-file: .nvmrc
36-
cache: yarn
36+
cache: npm
3737
- name: Lint
3838
run: |
39-
yarn install --immutable
40-
yarn lint:ci
39+
npm install
40+
npm run lint:ci

.github/workflows/upgrade-deps.yml

-59
This file was deleted.

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.17
1+
v20

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

-541
This file was deleted.

.yarn/releases/yarn-3.2.3.cjs

-783
This file was deleted.

.yarnrc.yml

-9
This file was deleted.

CONTRIBUTING.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ Please follow the [OddBird Code of Conduct](https://www.oddbird.net/conduct/).
1616
## Development
1717

1818
- Clone the repository.
19-
- Install dependencies: `yarn install`.
20-
- Start dev server: `yarn serve`. Visit `localhost:3000`.
19+
- Install dependencies: `npm install`.
20+
- Start dev server: `npm run serve`. Visit `localhost:3000`.
2121

2222
## Code style
2323

2424
JS code is formatted with prettier, and CSS is formatted with stylelint.
2525

26-
- Lint: `yarn lint:ci`
27-
- Format & lint: `yarn lint`
26+
- Lint: `npm run lint:ci`
27+
- Format & lint: `npm run lint`
2828

2929
We recommend setting up your IDE to automatically format code for you.
3030

3131
## Testing
3232

3333
Unit tests and end-to-end tests are available in the `tests/` folder.
3434

35-
- Run all tests: `yarn test`
36-
- Run unit tests: `yarn test:unit`
35+
- Run all tests: `npm run test`
36+
- Run unit tests: `npm run test:unit`
3737
- Run end-to-end tests:
3838
- Configure Playwright (this step is only required once or when the version of
3939
`@playwright/test` changes in package.json):
4040
`npx playwright install --with-deps`
41-
- Run tests (Chromium only): `yarn test:e2e`
42-
- Run tests (Chromium, Firefox & Webkit): `yarn test:e2e:ci`
41+
- Run tests (Chromium only): `npm run test:e2e`
42+
- Run tests (Chromium, Firefox & Webkit): `npm run test:e2e:ci`

0 commit comments

Comments
 (0)