Skip to content

Commit

Permalink
feat: Improve github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasnisole committed Feb 15, 2022
1 parent 5cf6580 commit cdc2b19
Showing 1 changed file with 8 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/github-ci.yml
Expand Up @@ -28,13 +28,6 @@ jobs:
- name: Test
run: npm run test

- name: Archive coverage artifact
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@master
with:
name: ts-serializer-coverage
path: ./coverage

- name: Linter
run: npm run lint

Expand All @@ -44,11 +37,13 @@ jobs:
CI: true

- name: Archive production artifact
if: "github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, 'release: v')"
if: github.ref == 'refs/heads/master'
uses: actions/upload-artifact@master
with:
name: ts-serializer
path: ./dist
path: |
.
!node_modules
coverall:
name: Coverall
Expand All @@ -59,14 +54,11 @@ jobs:
matrix:
node-version: [ 14.16.1 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Download artifact
uses: actions/download-artifact@master
with:
name: ts-serializer-coverage
path: ./coverage
name: ts-serializer
path: .

- name: Send coverage to Coverall
uses: coverallsapp/github-action@v1.0.1
Expand All @@ -83,14 +75,11 @@ jobs:
matrix:
node-version: [ 14.16.1 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Download artifact
uses: actions/download-artifact@master
with:
name: ts-serializer
path: ./dist
path: .

- name: Publish @paddls
uses: pascalgn/npm-publish-action@1.3.8
Expand All @@ -112,14 +101,11 @@ jobs:
matrix:
node-version: [ 14.16.1 ]
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Download artifact
uses: actions/download-artifact@master
with:
name: ts-serializer
path: ./dist
path: .

- name: PrePublish @witty-services
uses: jossef/action-set-json-field@v1
Expand Down

0 comments on commit cdc2b19

Please sign in to comment.