Skip to content

Commit be73ee9

Browse files
Wojciech KrysiakWojciech Krysiak
authored andcommitted
ci: update for typescript
1 parent 10ce9c6 commit be73ee9

File tree

3 files changed

+15
-33
lines changed

3 files changed

+15
-33
lines changed

.github/workflows/push.yml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,15 @@ jobs:
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
@@ -81,7 +90,6 @@ jobs:
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

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
example-app
2+
migrations
3+
models
4+
.github
5+
src

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
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": {

0 commit comments

Comments
 (0)