Skip to content

Commit

Permalink
change(workflow): put all steps into one workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiego committed Sep 18, 2020
1 parent 0fc7821 commit b9ff399
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 57 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/deploy.yaml

This file was deleted.

47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Test, Build and Deploy
on:
release:
types: [published]
push:
branches: '*'
pull_request:
branches: '*'

jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install
run: yarn install

- name: Check TS
run: yarn tsc

- name: Lint
run: yarn lint

- name: Test and Deploy Coverage
run: yarn jest --coverage

- name: Deploy Coverage
uses: coverallsapp/github-action@master
if: github.ref == 'refs/heads/master'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy:
runs-on: ubuntu-latest
needs: 'quality'
if: github.event.action == 'published'
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn install
- run: yarn build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
30 changes: 0 additions & 30 deletions .github/workflows/test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@postgresrest/node",
"version": "1.0.0",
"version": "0.0.1",
"main": "dist/index.js",
"types": "dist/index.d.js",
"repository": "git@github.com:prest/prest-node.git",
Expand Down

0 comments on commit b9ff399

Please sign in to comment.