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
12 changes: 12 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ on:
- 'public/css/**'
workflow_dispatch:

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

jobs:
build_and_release:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -43,12 +48,19 @@ jobs:
- name: Build
run: npm run build

- name: Log GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL
run: |
echo "GIT_AUTHOR_EMAIL=${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
echo "GIT_COMMITTER_EMAIL=${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"

- name: Run Semantic Release
id: semantic_release
run: npx semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
GIT_AUTHOR_EMAIL: '${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com'
GIT_COMMITTER_EMAIL: '${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com'

- name: Configure Git for version bump
if: ${{ success() }}
Expand Down