Skip to content
Open
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: 16 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ on:
- '.github/**/*'
- 'docs/**/*'

permissions:
contents: write
issues: write
pull-requests: write

jobs:
release:
runs-on: ubuntu-latest
Expand All @@ -24,7 +29,7 @@ jobs:
with:
node-version: '22.x'

- run: npm i
- run: npm ci

- name: Copy root README to frontend-framework package
run: cp README.md packages/frontend-framework/README.md
Expand All @@ -33,8 +38,16 @@ jobs:

- run: npm run test

- name: Build all packages and release them
- name: Generate GitHub App token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
installation_id: ${{ secrets.GH_APP_INSTALLATION_ID }}

- name: Release using semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release