Skip to content

Commit

Permalink
fix(cicd): cleanup always
Browse files Browse the repository at this point in the history
  • Loading branch information
JBBianchi committed Nov 29, 2023
1 parent 820f536 commit b4e29c9
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/js-package-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,22 +92,13 @@ jobs:
name: ${{ fromJSON(needs.config.outputs.package-config).name }}
path: ${{ fromJSON(needs.config.outputs.package-config).path }}

cleanup-after-build:
if: (github.event_name != 'push' || github.ref_name != 'main') && github.event_name !='workflow_dispatch'
cleanup:
if: ${{ always() }}
needs:
- config
- build
# - test
# - lint
uses: ./.github/workflows/js-cleanup-cache.yml
with:
name: ${{ fromJSON(needs.config.outputs.package-config).name }}
path: ${{ fromJSON(needs.config.outputs.package-config).path }}

cleanup-after-publish:
if: (github.event_name == 'push' && github.ref_name == 'main') || github.event_name =='workflow_dispatch'
needs:
- config
# - test
# - lint
- publish
uses: ./.github/workflows/js-cleanup-cache.yml
with:
Expand Down

0 comments on commit b4e29c9

Please sign in to comment.