Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ jobs:
semantic-release:
name: Release the application
runs-on: ubuntu-latest
permissions:
contents: write # Permit release creation
issues: write # Write on released issues
pull-requests: write # Write on released PRs
actions: write # Trigger deploy action
steps:
- name: Generate Bot token used to release
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.RELEASE_APP_ID }}
private_key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
- name: Checkout sources
uses: actions/checkout@v4

with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: Install NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22

- name: Install Semantic Release globally
run: npm install -g semantic-release @semantic-release/git @semantic-release/exec @semantic-release/changelog
Expand All @@ -29,4 +32,4 @@ jobs:
- name: Release with semantic versioning
run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
Loading