nodejs-quickstart-structure 1.1.9 → 1.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/generator.js CHANGED
@@ -277,7 +277,7 @@ export const generateProject = async (config) => {
277
277
  // 11. Copy CI/CD Config (Optional)
278
278
  if (includeCI) {
279
279
  await fs.ensureDir(path.join(targetDir, '.github/workflows'));
280
- await fs.copy(path.join(templatesDir, 'common', '.github/workflows/ci.yml'), path.join(targetDir, '.github/workflows/ci.yml'));
280
+ await fs.copy(path.join(templatesDir, 'common', '_github/workflows/ci.yml'), path.join(targetDir, '.github/workflows/ci.yml'));
281
281
  }
282
282
 
283
283
  console.log(`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodejs-quickstart-structure",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "type": "module",
5
5
  "description": "A CLI to scaffold Node.js microservices with MVC or Clean Architecture",
6
6
  "main": "bin/index.js",
@@ -0,0 +1,37 @@
1
+ name: Node.js CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+ pull_request:
7
+ branches: [ "main" ]
8
+
9
+ jobs:
10
+ build:
11
+
12
+ runs-on: ubuntu-latest
13
+
14
+ strategy:
15
+ matrix:
16
+ node-version: [18.x, 20.x]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+
21
+ - name: Use Node.js ${{ matrix.node-version }}
22
+ uses: actions/setup-node@v3
23
+ with:
24
+ node-version: ${{ matrix.node-version }}
25
+ cache: 'npm'
26
+
27
+ - name: Install Dependencies
28
+ run: npm ci
29
+
30
+ - name: Lint Code
31
+ run: npm run lint
32
+
33
+ - name: Run Tests
34
+ run: npm test
35
+
36
+ - name: Build
37
+ run: npm run build --if-present