Skip to content

Commit

Permalink
chore: remove package lock (#1993)
Browse files Browse the repository at this point in the history
* chore: remove package lock

* chore: remove remaining lock files
  • Loading branch information
dyladan authored Mar 3, 2021
1 parent 0643642 commit 1905296
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 20,936 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
# must be done before bootstrap to not include node_modules files in the cache paths
path: |
package-lock.json
packages/*/package-lock.json
benchmark/*/package-lock.json
backwards-compatability/*/package-lock.json
Expand All @@ -37,18 +38,17 @@ jobs:
integration-tests/*/package-lock.json
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}

- name: Install root dependencies
run: npm ci --ignore-scripts

- name: Install and Build (cache miss) 🔧
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install --ignore-scripts
npx lerna bootstrap --no-ci
npm run compile
- name: Install and Build (cache hit) 🔧
if: steps.cache.outputs.cache-hit == 'true'
run: |
npm ci --ignore-scripts
npx lerna bootstrap
npm run compile
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
with:
# must be done before bootstrap to not include node_modules files in the cache paths
path: |
package-lock.json
packages/*/package-lock.json
benchmark/*/package-lock.json
backwards-compatability/*/package-lock.json
Expand All @@ -42,18 +43,19 @@ jobs:
integration-tests/*/package-lock.json
key: ${{ runner.os }}-lint-${{ hashFiles('**/package.json') }}

- name: Install root dependencies
run: npm ci --ignore-scripts

# On a cache hit, use ci to speed up the install process
- name: Bootstrap (cache hit)
if: steps.cache.outputs.cache-hit == 'true'
run: npx lerna bootstrap --ignore-scripts
run: |
npm ci --ignore-scripts
npx lerna bootstrap --ignore-scripts
# On a cache miss, fall back to a regular install
- name: Bootstrap (cache miss)
if: steps.cache.outputs.cache-hit != 'true'
run: npx lerna bootstrap --no-ci --ignore-scripts -- --only=dev
run: |
npm install --ignore-scripts
npx lerna bootstrap --no-ci --ignore-scripts -- --only=dev
- name: Lint
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
with:
# must be done before bootstrap to not include node_modules files in the cache paths
path: |
package-lock.json
packages/*/package-lock.json
benchmark/*/package-lock.json
backwards-compatability/*/package-lock.json
Expand All @@ -34,18 +35,17 @@ jobs:
integration-tests/*/package-lock.json
key: ${{ runner.os }}-unit_test-${{ matrix.container }}-${{ hashFiles('**/package.json') }}

- name: Install root dependencies
run: npm ci --ignore-scripts

- name: Install and Build (cache miss) 🔧
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install --ignore-scripts
npx lerna bootstrap --no-ci
npm run compile
- name: Install and Build (cache hit) 🔧
if: steps.cache.outputs.cache-hit == 'true'
run: |
npm ci --ignore-scripts
npx lerna bootstrap
npm run compile
Expand All @@ -72,6 +72,7 @@ jobs:
with:
# must be done before bootstrap to not include node_modules files in the cache paths
path: |
package-lock.json
packages/*/package-lock.json
benchmark/*/package-lock.json
backwards-compatability/*/package-lock.json
Expand All @@ -80,18 +81,17 @@ jobs:
integration-tests/*/package-lock.json
key: ${{ runner.os }}-unit_test-${{ matrix.container }}-${{ hashFiles('**/package.json') }}

- name: Install root dependencies
run: npm ci --ignore-scripts

- name: Install and Build (cache miss) 🔧
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm install --ignore-scripts
npx lerna bootstrap --no-ci
npm run compile
- name: Install and Build (cache hit) 🔧
if: steps.cache.outputs.cache-hit == 'true'
run: |
npm ci --ignore-scripts
npx lerna bootstrap
npm run compile
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/w3c-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
with:
# must be done before bootstrap to not include node_modules files in the cache paths
path: |
package-lock.json
packages/*/package-lock.json
benchmark/*/package-lock.json
backwards-compatability/*/package-lock.json
Expand All @@ -27,16 +28,17 @@ jobs:
integration-tests/*/package-lock.json
key: ${{ runner.os }}-w3c_integration-${{ hashFiles('**/package.json') }}

- name: Install root dependencies
run: npm ci --ignore-scripts

- name: Install and Build (cache miss) 🔧
if: steps.cache.outputs.cache-hit != 'true'
run: npx lerna bootstrap --no-ci --scope=propagation-validation-server --include-dependencies
run: |
npm install --ignore-scripts
npx lerna bootstrap --no-ci --scope=propagation-validation-server --include-dependencies
- name: Install and Build (cache hit) 🔧
if: steps.cache.outputs.cache-hit == 'true'
run: npx lerna bootstrap --scope=propagation-validation-server --include-dependencies
run: |
npm ci --ignore-scripts
npx lerna bootstrap --scope=propagation-validation-server --include-dependencies
- name: Build 🔧
run: npm run compile
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ typings/

# lock files
yarn.lock
packages/**/yarn.lock
*/**/package-lock.json
package-lock.json

# docs files
docs
Expand Down
Loading

0 comments on commit 1905296

Please sign in to comment.