Skip to content

Commit

Permalink
ci(workflow): Update release job
Browse files Browse the repository at this point in the history
  • Loading branch information
bartventer committed Jul 21, 2024
1 parent d478564 commit 0eb0c35
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,23 @@ jobs:
FOSSA_API_KEY: ${{ secrets.FOSSA_API_KEY }}
run: fossa test

semantic-release:
name: Semantic Release
release:
name: Release
if: github.event_name == 'push'
needs: [license-scan]
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
steps:
- uses: actions/checkout@v4
- name: Run semantic-release
if: github.event_name == 'push'
run: |
yarn global add semantic-release@17
semantic-release
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Run release
run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0eb0c35

Please sign in to comment.