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 7373 POSTGRES_PASSWORD : postgres
7474 POSTGRES_DATABASE : postgres
7575 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
7685
7786 notify :
7887 name : Notify
8190 needs :
8291 - test
8392 - setup
84- - publish
8593 steps :
8694 - uses : technote-space/workflow-conclusion-action@v1
8795 - uses : 8398a7/action-slack@v3
@@ -93,35 +101,4 @@ jobs:
93101 SLACK_WEBHOOK_URL : ${{ secrets.SLACK_WEBHOOK }}
94102 if : failure()
95103
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-
127104
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 99 "test" : " mocha -r ts-node/register src/*.spec.ts" ,
1010 "cover" : " NODE_ENV=test ./node_modules/nyc/bin/nyc.js --reporter=html -x=spec -x=coverage --all=true npm test" ,
1111 "sequelize" : " sequelize" ,
12- "lint" : " eslint './spec/**/*.ts' './ src/**/*.ts' " ,
12+ "lint" : " eslint ./ src/**/*.ts" ,
1313 "release" : " semantic-release"
1414 },
1515 "repository" : {
You can’t perform that action at this time.
0 commit comments