Skip to content

Commit a711847

Browse files
authored
Merge pull request #20 from js-smart/development
build: updates build.yml
2 parents edcc872 + a2f09a7 commit a711847

File tree

5 files changed

+187
-35055
lines changed

5 files changed

+187
-35055
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v1
9-
- uses: actions/setup-node@v1
9+
- uses: pnpm/[email protected]
10+
with:
11+
version: 7
12+
- uses: actions/setup-node@v2
1013
with:
1114
node-version: 16
1215
- name: Install Dependencies
13-
run: npm install --force
16+
run: pnpm install
1417
- name: Run Tests
15-
run: npm test react-cookie-service
18+
run: pnpm test react-cookie-service
1619
- name: Build project
17-
run: npm run build react-cookie-service
20+
run: pnpm run build react-cookie-service

nx.json

Lines changed: 51 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,53 @@
11
{
2-
"npmScope": "pj",
3-
"affected": {
4-
"defaultBase": "master"
5-
},
6-
"implicitDependencies": {
7-
"package.json": {
8-
"dependencies": "*",
9-
"devDependencies": "*"
10-
},
11-
".eslintrc.json": "*"
12-
},
13-
"tasksRunnerOptions": {
14-
"default": {
15-
"runner": "@nrwl/nx-cloud",
16-
"options": {
17-
"cacheableOperations": ["build", "lint", "test", "e2e"],
18-
"accessToken": "MDRkOTUyZGQtYzk2Yy00ZjM3LWEwMTktNTllY2Q3MzI2YWNhfHJlYWQtd3JpdGU=",
19-
"parallel": 1
20-
}
21-
}
22-
},
23-
"generators": {
24-
"@nrwl/react": {
25-
"application": {
26-
"style": "scss",
27-
"linter": "eslint",
28-
"babel": true
29-
},
30-
"component": {
31-
"style": "scss"
32-
},
33-
"library": {
34-
"style": "scss",
35-
"linter": "eslint"
36-
}
37-
}
38-
},
39-
"defaultProject": "react-cookie-service-example",
40-
"$schema": "./node_modules/nx/schemas/nx-schema.json",
41-
"targetDefaults": {
42-
"build": {
43-
"dependsOn": ["^build"]
44-
}
45-
}
2+
"npmScope": "pj",
3+
"affected": {
4+
"defaultBase": "master"
5+
},
6+
"implicitDependencies": {
7+
"package.json": {
8+
"dependencies": "*",
9+
"devDependencies": "*"
10+
},
11+
".eslintrc.json": "*"
12+
},
13+
"tasksRunnerOptions": {
14+
"default": {
15+
"runner": "@nrwl/nx-cloud",
16+
"options": {
17+
"cacheableOperations": [
18+
"build",
19+
"lint",
20+
"test",
21+
"e2e"
22+
],
23+
"accessToken": "Yjg2MmE5ZTMtMDk5Ni00Y2M0LTg0NjUtYTBiMGI5ZThhZDU1fHJlYWQtd3JpdGU=",
24+
"parallel": 1
25+
}
26+
}
27+
},
28+
"generators": {
29+
"@nrwl/react": {
30+
"application": {
31+
"style": "scss",
32+
"linter": "eslint",
33+
"babel": true
34+
},
35+
"component": {
36+
"style": "scss"
37+
},
38+
"library": {
39+
"style": "scss",
40+
"linter": "eslint"
41+
}
42+
}
43+
},
44+
"defaultProject": "react-cookie-service-example",
45+
"$schema": "./node_modules/nx/schemas/nx-schema.json",
46+
"targetDefaults": {
47+
"build": {
48+
"dependsOn": [
49+
"^build"
50+
]
51+
}
52+
}
4653
}

0 commit comments

Comments
 (0)