Skip to content

Commit

Permalink
ci: correct semantic-release
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <[email protected]>
  • Loading branch information
msclock committed Nov 7, 2024
1 parent c1dadbb commit 4ea18b0
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,30 +107,27 @@ jobs:
with:
jobs: ${{ toJSON(needs) }}

release:
name: release
semantic-release:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
permissions:
contents: write
contents: write # write for semantic-release
needs: [pass]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-node@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: lts/*

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: >
npx
--package @semantic-release/github
--package [email protected]
--package [email protected]
--package conventional-changelog-conventionalcommits@7
--package semantic-release@22
semantic-release

0 comments on commit 4ea18b0

Please sign in to comment.