Skip to content

Commit 023d0c5

Browse files
authored
fix: drop yarn (#510)
1 parent dbc6ddd commit 023d0c5

File tree

5 files changed

+935
-44
lines changed

5 files changed

+935
-44
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,11 @@ jobs:
3939
node-version: ${{ env.stable-node-version}}
4040
cache: npm
4141

42-
- name: node_modules cache
43-
uses: actions/cache@v2
44-
with:
45-
path: "**/node_modules"
46-
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
47-
4842
- name: Install dependencies
49-
run: yarn install --frozen-lockfile && yarn add --dev ${{ env.e2e-eslint-version }}
43+
run: npm ci && npm i -D ${{ env.e2e-eslint-version }}
5044

5145
- name: Run tests
52-
run: yarn test && yarn spec:e2e
46+
run: npm test && npm run spec:e2e
5347

5448
- name: Release --dry-run # Uses release.config.js
5549
if: ${{ github.event.inputs.dryRun == 'true'}}

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Here's a list of tips and tricks that will help you get started.
66

77
#### Important Concepts
88

9-
* Static Analysis
10-
* ASTs
11-
* Polyfills
12-
* TypeScript
13-
* WebIDL
9+
- Static Analysis
10+
- ASTs
11+
- Polyfills
12+
- TypeScript
13+
- WebIDL
1414

1515
### Benchmarking
1616

17-
Benchmarking (`yarn benchmarks`) helps prevent performance regression.
17+
Benchmarking (`npm run benchmarks`) helps prevent performance regression.
1818

1919
#### Related Projects
2020

azure-pipelines.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
variables:
2-
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
32
stableNodeVersion: "14.x"
43
currentNodeVersion: "16.x"
54
# Used with `eslintVersion` to see if `spec:e2e` and `benchmarks` should run
@@ -88,27 +87,19 @@ steps:
8887
inputs:
8988
versionSpec: $(nodeVersion)
9089
displayName: Install node@$(nodeVersion)
91-
- task: Cache@2
92-
inputs:
93-
key: 'yarn | "$(Agent.OS)" | yarn.lock'
94-
restoreKeys: |
95-
yarn | "$(Agent.OS)"
96-
yarn
97-
path: $(YARN_CACHE_FOLDER)
98-
displayName: Cache Yarn packages
99-
- script: yarn --frozen-lockfile && yarn add --dev $(eslintVersion) && yarn test
100-
displayName: Install dependencies and run yarn test
90+
- script: npm ci && npm i -D $(eslintVersion) && npm test
91+
displayName: Install dependencies and run npm test
10192
# E2E tests use eslint@7+ only feature (the Node.js API class ESLint)
10293
# Also disabled on windows because of jest snapshot problems
103-
- script: yarn spec:e2e
94+
- script: npm run spec:e2e
10495
condition: and(contains(variables['eslintVersion'], variables['e2eEslintVersion']), ne(variables['imageName'], 'vs2017-win2016'))
105-
displayName: Run yarn spec:e2e if $(eslintVersion) >= $(e2eEslintVersion)
96+
displayName: Run npm run spec:e2e if $(eslintVersion) >= $(e2eEslintVersion)
10697
# Benchmarks use eslint@7_ only feature (the Node.js API class ESLint)
107-
- script: yarn benchmarks
98+
- script: npm run benchmarks
10899
condition: contains(variables['eslintVersion'], variables['e2eEslintVersion'])
109-
displayName: Run yarn benchmarks if $(eslintVersion) >= $(e2eEslintVersion)
100+
displayName: Run npm run benchmarks if $(eslintVersion) >= $(e2eEslintVersion)
110101
# Upload Jest code coverage
111-
- script: yarn spec --coverage --coverageReporters=cobertura
102+
- script: npm run spec --coverage --coverageReporters=cobertura
112103
displayName: Generate Jest coverage report
113104
- task: PublishCodeCoverageResults@1
114105
inputs:

0 commit comments

Comments
 (0)