@aleleba/create-node-ts-graphql-server 1.5.9 → 1.5.10

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.
@@ -0,0 +1,60 @@
1
+ # This file contains the main workflow for the GitHub Actions CI/CD pipeline for a Node.js TypeScript GraphQL server project.
2
+ # Name of the workflow
3
+ name: Main Workflow
4
+
5
+ # Define the event that triggers the workflow
6
+ on:
7
+ push:
8
+ branches: [ master ]
9
+ pull_request:
10
+ branches: ['*']
11
+
12
+ # Define the jobs that will run in the workflow
13
+ jobs:
14
+ # Job to run tests
15
+ test:
16
+ runs-on: ubuntu-latest
17
+ strategy:
18
+ matrix:
19
+ node-version: [16.x]
20
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - name: Use Node.js 16
24
+ uses: actions/setup-node@v3
25
+ with:
26
+ node-version: 16
27
+ cache: 'npm'
28
+ registry-url: https://registry.npmjs.org/
29
+ - run: npm ci --legacy-peer-deps
30
+ - run: npm test
31
+
32
+ # Job to build the package
33
+ test-build-package:
34
+ if: github.ref != 'refs/heads/master'
35
+ needs: test
36
+ runs-on: ubuntu-latest
37
+ steps:
38
+ - uses: actions/checkout@v3
39
+ - uses: actions/setup-node@v3
40
+ with:
41
+ node-version: 16
42
+ registry-url: https://registry.npmjs.org/
43
+ - run: npm ci --legacy-peer-deps
44
+ - run: npm run build
45
+
46
+ # Job to publish the package to npm
47
+ publish-npm:
48
+ if: github.ref == 'refs/heads/master'
49
+ needs: test
50
+ runs-on: ubuntu-latest
51
+ steps:
52
+ - uses: actions/checkout@v3
53
+ - uses: actions/setup-node@v3
54
+ with:
55
+ node-version: 16
56
+ registry-url: https://registry.npmjs.org/
57
+ - run: npm ci --legacy-peer-deps
58
+ - run: npm publish --access=public
59
+ env:
60
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aleleba/create-node-ts-graphql-server",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "description": "Node with Typescript and GraphQL Server",
5
5
  "bin": "./bin/cli.js",
6
6
  "main": "index.js",
@@ -53,9 +53,9 @@
53
53
  "ws": "^8.14.2"
54
54
  },
55
55
  "devDependencies": {
56
- "@babel/core": "^7.23.2",
57
- "@babel/preset-env": "^7.23.2",
58
- "@babel/preset-typescript": "^7.23.2",
56
+ "@babel/core": "^7.23.3",
57
+ "@babel/preset-env": "^7.23.3",
58
+ "@babel/preset-typescript": "^7.23.3",
59
59
  "@babel/register": "^7.22.15",
60
60
  "@types/body-parser": "^1.19.5",
61
61
  "@types/cookie-parser": "^1.4.6",
@@ -1,30 +0,0 @@
1
- name: NPM testing and publish package
2
-
3
- on:
4
- push:
5
- branches: [ master ]
6
- jobs:
7
- build:
8
- runs-on: ubuntu-latest
9
- steps:
10
- - uses: actions/checkout@v3
11
- - uses: actions/setup-node@v3
12
- with:
13
- node-version: 16
14
- registry-url: https://registry.npmjs.org/
15
- - run: npm ci --legacy-peer-deps
16
- - run: npm test
17
-
18
- publish-npm:
19
- needs: build
20
- runs-on: ubuntu-latest
21
- steps:
22
- - uses: actions/checkout@v3
23
- - uses: actions/setup-node@v3
24
- with:
25
- node-version: 16
26
- registry-url: https://registry.npmjs.org/
27
- - run: npm ci --legacy-peer-deps
28
- - run: npm publish --access=public
29
- env:
30
- NODE_AUTH_TOKEN: ${{secrets.npm_token}}
@@ -1,33 +0,0 @@
1
- name: Testing package
2
-
3
- on:
4
- pull_request:
5
- branches: ['*']
6
- jobs:
7
- test:
8
- runs-on: ubuntu-latest
9
- strategy:
10
- matrix:
11
- node-version: [16.x]
12
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
13
- steps:
14
- - uses: actions/checkout@v3
15
- - name: Use Node.js 16
16
- uses: actions/setup-node@v3
17
- with:
18
- node-version: 16
19
- cache: 'npm'
20
- registry-url: https://registry.npmjs.org/
21
- - run: npm ci --legacy-peer-deps
22
- - run: npm test
23
- test-build-package:
24
- needs: test
25
- runs-on: ubuntu-latest
26
- steps:
27
- - uses: actions/checkout@v3
28
- - uses: actions/setup-node@v3
29
- with:
30
- node-version: 16
31
- registry-url: https://registry.npmjs.org/
32
- - run: npm ci --legacy-peer-deps
33
- - run: npm run build