-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change(workflow): put all steps into one workflow
- Loading branch information
Showing
4 changed files
with
48 additions
and
57 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters