Skip to content

Commit

Permalink
chore(ci): Minor refactor to release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jscaltreto committed Sep 26, 2024
1 parent 9cdf6dc commit 250536f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,8 @@ jobs:

- name: Run unit tests
run: yarn test

scan:
needs: lint_and_test
if: github.event_name == 'pull_request'
uses: circlefin/circle-public-github-workflows/.github/workflows/pr-scan.yaml@v1

release_sbom:
needs: lint_and_test
if: github.event_name == 'push'
uses: circlefin/circle-public-github-workflows/.github/workflows/attach-release-assets.yaml@v1
15 changes: 13 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
name: Tag Release
name: PR Lint and Release

on:
pull_request:
branches: [master]
push:
branches: [master]

jobs:
release:
pr_lint_and_release:
uses: circlefin/circle-public-github-workflows/.github/workflows/conventional-commit-release.yaml@v1
if: github.repository_owner == 'circlefin'
with:
release_type: node
lint_commits: false
secrets:
RELEASE_TOKEN: ${{ secrets.PUBLIC_RELEASES_TOKEN }}
RELEASE_ACTOR_GPG_PRIVATE_KEY: ${{ secrets.PUBLIC_RELEASES_GPG_PRIVATE_KEY }}
RELEASE_ACTOR_GPG_PASSPHRASE: ${{ secrets.PUBLIC_RELEASES_GPG_PASSPHRASE }}

release_sbom:
needs: pr_lint_and_release
if: github.event_name == 'push' && needs.pr_lint_and_release.outputs.release_created == 'true'
uses: circlefin/circle-public-github-workflows/.github/workflows/attach-release-assets.yaml@v1
with:
release_tag: ${{ needs.pr_lint_and_release.outputs.release_tag }}

0 comments on commit 250536f

Please sign in to comment.