Skip to content

Commit e370fd2

Browse files
committed
added a step to verify the new deploy
7.4.6
1 parent a3c6cab commit e370fd2

File tree

4 files changed

+83
-63
lines changed

4 files changed

+83
-63
lines changed

.github/workflows/master-build.yml

+65-45
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,70 @@ name: Master Build and Package
55

66
on:
77
push:
8-
branches: [ master, main ]
8+
branches: [master, main]
99

1010
jobs:
11-
test1:
12-
runs-on: ubuntu-latest
11+
# test1:
12+
# runs-on: ubuntu-latest
1313

14-
strategy:
15-
matrix:
16-
node-version: [12.x, 13.x]
14+
# strategy:
15+
# matrix:
16+
# node-version: [12.x, 13.x]
17+
18+
# steps:
19+
# - uses: actions/checkout@v2
20+
# - name: Use Node.js ${{ matrix.node-version }}
21+
# uses: actions/setup-node@v1
22+
# with:
23+
# node-version: ${{ matrix.node-version }}
24+
# registry-url: https://registry.npmjs.org/
25+
# - run: npm ci
26+
# - run: npm test
27+
28+
# test2:
29+
# needs: [test1]
30+
# runs-on: ubuntu-latest
31+
32+
# strategy:
33+
# matrix:
34+
# node-version: [15.x, 16.x]
35+
36+
# steps:
37+
# - uses: actions/checkout@v2
38+
# - name: Use Node.js ${{ matrix.node-version }}
39+
# uses: actions/setup-node@v1
40+
# with:
41+
# node-version: ${{ matrix.node-version }}
42+
# registry-url: https://registry.npmjs.org/
43+
# - run: npm ci
44+
# - run: npm test
45+
46+
build_test_publish:
47+
# needs: [test2]
1748

18-
steps:
19-
- uses: actions/checkout@v2
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
registry-url: https://registry.npmjs.org/
25-
- run: npm ci
26-
- run: npm test
27-
28-
test2:
29-
needs: [test1]
3049
runs-on: ubuntu-latest
3150

3251
strategy:
3352
matrix:
34-
node-version: [15.x, 16.x]
53+
node-version: [14.x] # 14 is LTS
3554

3655
steps:
37-
- uses: actions/checkout@v2
38-
- name: Use Node.js ${{ matrix.node-version }}
39-
uses: actions/setup-node@v1
40-
with:
41-
node-version: ${{ matrix.node-version }}
42-
registry-url: https://registry.npmjs.org/
43-
- run: npm ci
44-
- run: npm test
45-
46-
build_publish:
47-
needs: [test1, test2]
56+
- uses: actions/checkout@v2
57+
- name: Use Node.js ${{ matrix.node-version }}
58+
uses: actions/setup-node@v1
59+
with:
60+
node-version: ${{ matrix.node-version }}
61+
registry-url: https://registry.npmjs.org/
62+
- run: npm ci
63+
- run: npm test
64+
- run: npm run build
65+
- run: npm publish
66+
env:
67+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
68+
# continue-on-error: true
69+
70+
verify_new_package:
71+
needs: [build_test_publish]
4872

4973
runs-on: ubuntu-latest
5074

@@ -53,18 +77,14 @@ jobs:
5377
node-version: [14.x] # 14 is LTS
5478

5579
steps:
56-
- uses: actions/checkout@v2
57-
- name: Use Node.js ${{ matrix.node-version }}
58-
uses: actions/setup-node@v1
59-
with:
60-
node-version: ${{ matrix.node-version }}
61-
registry-url: https://registry.npmjs.org/
62-
- run: npm ci
63-
- run: npm test
64-
- run: npm run build
65-
- run: npm publish
66-
env:
67-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
68-
# continue-on-error: true
69-
70-
80+
- uses: actions/checkout@v2
81+
with:
82+
repository: synle/restapi-typescript-decorators-back-end-example
83+
- name: Use Node.js ${{ matrix.node-version }}
84+
uses: actions/setup-node@v1
85+
with:
86+
node-version: ${{ matrix.node-version }}
87+
registry-url: https://registry.npmjs.org/
88+
- run: rm package-lock.json
89+
- run: npm install
90+
- run: npm test

.github/workflows/pr-build.yml

+15-15
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Pull Request Build
55

66
on:
77
pull_request:
8-
branches: [ master , main]
8+
branches: [master, main]
99

1010
jobs:
1111
build:
@@ -16,17 +16,17 @@ jobs:
1616
node-version: [12.x, 13.x, 14.x, 15.x, 16.x]
1717

1818
steps:
19-
- uses: actions/checkout@v2
20-
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v1
22-
with:
23-
node-version: ${{ matrix.node-version }}
24-
registry-url: https://registry.npmjs.org/
25-
- run: npm ci
26-
- run: npm test
27-
- run: npm run build
28-
- run: node publishBetaTags.js
29-
- run: cat package.json
30-
- run: npm publish --tag beta
31-
env:
32-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
19+
- uses: actions/checkout@v2
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
registry-url: https://registry.npmjs.org/
25+
- run: npm ci
26+
- run: npm test
27+
- run: npm run build
28+
- run: node publishBetaTags.js
29+
- run: cat package.json
30+
- run: npm publish --tag beta
31+
env:
32+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "restapi-typescript-decorators",
3-
"version": "7.4.5",
3+
"version": "7.4.6",
44
"description": "Decorators that helps reduce the boilderplate code for rest api calls on the frontend and node js",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",
77
"scripts": {
88
"build": "rm -rf build/* && tsc",
9-
"format": "npx prettier --config ./.prettierrc --write src/**/**/**/**/*.{ts,tsx,js,jsx,scss} mock-server/**/**/*.js *.json *.js .prettierrc *.md",
9+
"format": "npx prettier --config ./.prettierrc --write src/**/**/**/**/*.{ts,tsx,js,jsx,scss} mock-server/**/**/*.js **/**/**/*.yml *.json *.js .prettierrc *.md",
1010
"clean": "jest --clearCache && rm -rf build/*",
1111
"test": "jest --ci",
1212
"test:resetSnapshot": "jest --ci --updateSnapshot"

0 commit comments

Comments
 (0)