Skip to content

Commit 723c2e1

Browse files
authored
chore: downgrade dependencies (#270)
# Dependencies - Downgrade dependencies to match the 0.2.0 release - Pin Node.js and Yarn versions # CI - Remove Renovate - Disable the `workflow_dispatch` trigger - Improve concurrency strategy - Update action versions
1 parent f8a8b66 commit 723c2e1

File tree

10 files changed

+5171
-6446
lines changed

10 files changed

+5171
-6446
lines changed

.github/actions/setup-node/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ runs:
66
using: composite
77
steps:
88
- name: Set up Node.js and Yarn
9-
uses: volta-cli/action@v1
9+
uses: volta-cli/action@v4
1010
- name: Get Yarn cache directory path
1111
id: yarn-cache-dir-path
1212
shell: bash
13-
run: echo "::set-output name=dir::$(yarn cache dir)"
13+
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
1414
- name: Cache Yarn cache directory
1515
uses: actions/cache@v3
1616
with:

.github/workflows/ci.yml

Lines changed: 24 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,37 @@
11
name: CI
22

3-
concurrency:
4-
group: ci@${{ github.ref_name }}
5-
cancel-in-progress: ${{ github.ref_name != 'main' }}
6-
73
on:
84
push:
95
branches:
106
- main
117
pull_request: {}
12-
workflow_dispatch: {}
8+
9+
concurrency:
10+
# Group concurrency on workflow, then:
11+
# - Is merge run? Group on branch name (`refs/heads/main`)
12+
# - Is pull request? Group on pull request branch name, for example `feat/add-awesome-feature`
13+
group: >-
14+
${{ github.workflow }}-${{
15+
github.event_name == 'push'
16+
&& github.ref
17+
|| github.head_ref
18+
}}
19+
# Run merge workflows in sequence to prevent parallel deployments and releases
20+
# Cancel stale pull request runs in progress for the same branch
21+
cancel-in-progress: ${{ github.event_name != 'push' }}
1322

1423
env:
15-
is-main-branch: ${{ github.ref_name == 'main' }}
24+
is-merge-to-main: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
1625
NODE_OPTIONS: --max-old-space-size=6144
1726

1827
jobs:
19-
validate-renovate:
20-
name: 'Validate Renovate configuration @await'
21-
runs-on: ubuntu-latest
22-
23-
steps:
24-
- name: Check out source code
25-
uses: actions/checkout@v2
26-
- name: Set up Node.js LTS
27-
uses: actions/setup-node@v2
28-
with:
29-
cache: npm
30-
node-version: lts/*
31-
- name: Install Renovate
32-
run: npm install --global renovate
33-
34-
- name: Validate Renovate configuration
35-
run: renovate-config-validator
36-
3728
lint:
38-
name: 'Lint @await'
29+
name: Lint
3930
runs-on: ubuntu-latest
4031

4132
steps:
4233
- name: Check out source code
43-
uses: actions/checkout@v2
34+
uses: actions/checkout@v3
4435
- name: Set up Node.js and install dependencies
4536
uses: ./.github/actions/setup-node
4637
- name: Install package dependencies
@@ -49,12 +40,12 @@ jobs:
4940
- name: Lint
5041
run: yarn lint
5142
test:
52-
name: 'Test @await'
43+
name: Test
5344
runs-on: ubuntu-latest
5445

5546
steps:
5647
- name: Check out source code
57-
uses: actions/checkout@v2
48+
uses: actions/checkout@v3
5849
- name: Set up Node.js and install dependencies
5950
uses: ./.github/actions/setup-node
6051
- name: Install package dependencies
@@ -64,12 +55,12 @@ jobs:
6455
run: yarn test
6556

6657
build:
67-
name: 'Build @await'
58+
name: Build
6859
runs-on: ubuntu-latest
6960

7061
steps:
7162
- name: Check out source code
72-
uses: actions/checkout@v2
63+
uses: actions/checkout@v3
7364
- name: Set up Node.js and install dependencies
7465
uses: ./.github/actions/setup-node
7566
- name: Install package dependencies
@@ -78,9 +69,9 @@ jobs:
7869
- name: Build
7970
run: yarn build
8071

81-
- name: 'Merge: Upload package bundle'
82-
if: ${{ env.is-main-branch == 'true' }}
83-
uses: actions/upload-artifact@v2
72+
- name: '[Merge] Upload package bundle'
73+
if: ${{ env.is-merge-to-main == 'true' }}
74+
uses: actions/upload-artifact@v3
8475
with:
8576
name: ngworker-router-component-store
8677
path: dist/packages/router-component-store

.github/workflows/nx-migrate.yml

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

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.18.0
1+
14.20.1

package.json

Lines changed: 56 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,72 @@
11
{
2-
"name": "root",
2+
"name": "workspace",
33
"private": true,
44
"scripts": {
55
"postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main",
66
"build": "nx build",
77
"lint": "nx workspace-lint && nx lint --max-warnings=0",
88
"nx": "nx",
9-
"renovate:validate": "renovate-config-validator",
109
"test": "nx test"
1110
},
12-
"dependencies": {
13-
"@angular/animations": "13.1.3",
14-
"@angular/common": "13.1.3",
15-
"@angular/compiler": "13.1.3",
16-
"@angular/core": "13.1.3",
17-
"@angular/forms": "13.1.3",
18-
"@angular/platform-browser": "13.1.3",
19-
"@angular/platform-browser-dynamic": "13.1.3",
20-
"@angular/router": "13.1.3",
21-
"@ngrx/component-store": "13.0.2",
22-
"@ngrx/router-store": "13.0.2",
23-
"@ngrx/store": "13.0.2",
24-
"@nrwl/angular": "13.3.6",
25-
"rxjs": "7.4.0",
26-
"tslib": "2.3.1",
27-
"zone.js": "0.11.8"
28-
},
29-
"devDependencies": {
30-
"@angular-devkit/build-angular": "13.0.4",
31-
"@angular-eslint/eslint-plugin": "13.0.1",
32-
"@angular-eslint/eslint-plugin-template": "13.0.1",
33-
"@angular-eslint/template-parser": "13.0.1",
34-
"@angular/cli": "13.0.4",
35-
"@angular/compiler-cli": "13.1.3",
36-
"@angular/language-service": "13.1.3",
37-
"@nrwl/cli": "13.3.6",
38-
"@nrwl/cypress": "13.3.6",
39-
"@nrwl/eslint-plugin-nx": "13.3.6",
40-
"@nrwl/jest": "13.3.6",
41-
"@nrwl/linter": "13.3.6",
42-
"@nrwl/tao": "13.3.6",
43-
"@nrwl/workspace": "13.3.6",
44-
"@schematics/angular": "12.2.18",
45-
"@types/jest": "27.0.3",
46-
"@types/node": "14.14.45",
47-
"@typescript-eslint/eslint-plugin": "5.3.1",
48-
"@typescript-eslint/parser": "5.3.1",
49-
"cypress": "8.3.1",
50-
"eslint": "8.2.0",
51-
"eslint-config-prettier": "8.1.0",
52-
"eslint-plugin-ngrx": "2.1.4",
53-
"jest": "27.2.5",
54-
"jest-preset-angular": "11.0.1",
55-
"ng-packagr": "13.0.8",
56-
"postcss": "8.3.11",
57-
"postcss-import": "14.0.2",
58-
"postcss-preset-env": "6.7.1",
59-
"postcss-url": "10.1.3",
60-
"prettier": "2.3.2",
61-
"renovate": "31.97.3",
62-
"ts-jest": "27.0.7",
63-
"typescript": "4.4.4"
64-
},
6511
"engines": {
66-
"node": "16.18.0",
67-
"npm": "Use Yarn v1 instead of npm",
12+
"node": "14.20.1",
6813
"yarn": "1.22.19"
6914
},
7015
"volta": {
71-
"node": "16.18.0",
16+
"node": "14.20.1",
7217
"yarn": "1.22.19"
18+
},
19+
"dependencies": {
20+
"@angular/animations": "^12.2.0",
21+
"@angular/common": "^12.2.0",
22+
"@angular/compiler": "^12.2.0",
23+
"@angular/core": "^12.2.0",
24+
"@angular/forms": "^12.2.0",
25+
"@angular/platform-browser": "^12.2.0",
26+
"@angular/platform-browser-dynamic": "^12.2.0",
27+
"@angular/router": "^12.2.0",
28+
"@ngrx/component-store": "^12.5.1",
29+
"@ngrx/router-store": "^12.5.1",
30+
"@ngrx/store": "^12.5.1",
31+
"@nrwl/angular": "^13.1.4",
32+
"rxjs": "^7.4.0",
33+
"tslib": "^2.0.0",
34+
"zone.js": "~0.11.4"
35+
},
36+
"devDependencies": {
37+
"@angular-devkit/build-angular": "~12.2.0",
38+
"@angular-eslint/eslint-plugin": "~12.3.0",
39+
"@angular-eslint/eslint-plugin-template": "~12.3.0",
40+
"@angular-eslint/template-parser": "~12.3.0",
41+
"@angular/cli": "^12.2.0",
42+
"@angular/compiler-cli": "^12.2.0",
43+
"@angular/language-service": "^12.2.0",
44+
"@nrwl/cli": "13.1.4",
45+
"@nrwl/cypress": "13.1.4",
46+
"@nrwl/eslint-plugin-nx": "13.1.4",
47+
"@nrwl/jest": "13.1.4",
48+
"@nrwl/linter": "13.1.4",
49+
"@nrwl/tao": "13.1.4",
50+
"@nrwl/workspace": "13.1.4",
51+
"@schematics/angular": "12.2.0",
52+
"@types/jest": "27.0.2",
53+
"@types/node": "14.14.33",
54+
"@typescript-eslint/eslint-plugin": "~4.33.0",
55+
"@typescript-eslint/parser": "^5.3.1",
56+
"cypress": "^8.3.0",
57+
"eslint": "7.32.0",
58+
"eslint-config-prettier": "8.1.0",
59+
"eslint-plugin-ngrx": "^1.46.3",
60+
"jest": "27.2.3",
61+
"jest-preset-angular": "10.0.1",
62+
"ng-packagr": "^12.1.1",
63+
"nx": "13.1.4",
64+
"postcss": "^8.3.9",
65+
"postcss-import": "^14.0.2",
66+
"postcss-preset-env": "^6.7.0",
67+
"postcss-url": "^10.1.1",
68+
"prettier": "^2.3.1",
69+
"ts-jest": "27.0.5",
70+
"typescript": "~4.3.5"
7371
}
7472
}

0 commit comments

Comments
 (0)