File tree Expand file tree Collapse file tree 3 files changed +15
-33
lines changed Expand file tree Collapse file tree 3 files changed +15
-33
lines changed Original file line number Diff line number Diff line change 73
73
POSTGRES_PASSWORD : postgres
74
74
POSTGRES_DATABASE : postgres
75
75
POSTGRES_USER : postgres
76
+ - name : Build
77
+ run : yarn build
78
+ - name : Release
79
+ if : github.event_name == 'push'
80
+ env :
81
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
82
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
83
+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
84
+ run : yarn release
76
85
77
86
notify :
78
87
name : Notify
81
90
needs :
82
91
- test
83
92
- setup
84
- - publish
85
93
steps :
86
94
- uses : technote-space/workflow-conclusion-action@v1
87
95
- uses : 8398a7/action-slack@v3
@@ -93,35 +101,4 @@ jobs:
93
101
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK }}
94
102
if : failure()
95
103
96
- publish :
97
- name : Publish
98
- needs : test
99
- runs-on : ubuntu-latest
100
- if : github.event_name == 'push'
101
- steps :
102
- - name : Checkout
103
- uses : actions/checkout@v2
104
- - name : Setup
105
- uses : actions/setup-node@v1
106
- with :
107
- node-version : ' 10.x'
108
- - uses : actions/cache@v1
109
- id : yarn-cache
110
- with :
111
- path : node_modules
112
- key : ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
113
- restore-keys : |
114
- ${{ runner.os }}-node_modules-
115
- - name : Install
116
- if : steps.yarn-cache.outputs.cache-hit != 'true'
117
- run : yarn install
118
- - name : Release
119
- env :
120
- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
121
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
122
- JIRA_TOKEN : ${{ secrets.JIRA_TOKEN }}
123
- JIRA_EMAIL : ${{ secrets.JIRA_EMAIL }}
124
- SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
125
- run : yarn release
126
-
127
104
Original file line number Diff line number Diff line change
1
+ example-app
2
+ migrations
3
+ models
4
+ .github
5
+ src
Original file line number Diff line number Diff line change 9
9
"test" : " mocha -r ts-node/register src/*.spec.ts" ,
10
10
"cover" : " NODE_ENV=test ./node_modules/nyc/bin/nyc.js --reporter=html -x=spec -x=coverage --all=true npm test" ,
11
11
"sequelize" : " sequelize" ,
12
- "lint" : " eslint './spec/**/*.ts' './ src/**/*.ts' " ,
12
+ "lint" : " eslint ./ src/**/*.ts" ,
13
13
"release" : " semantic-release"
14
14
},
15
15
"repository" : {
You can’t perform that action at this time.
0 commit comments