Skip to content

Merge pull request #41 from schueco/fix/fix-release-workflow #38

Merge pull request #41 from schueco/fix/fix-release-workflow

Merge pull request #41 from schueco/fix/fix-release-workflow #38

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
# Required to publish a GitHub release
contents: write
# Required to comment on issues and pull requests
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: "🪙 Generate a token"
id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.SEMANTIC_RELEASE_APP_ID }}
private_key: ${{ secrets.SEMANTIC_RELEASE_KEY_PEM }}
- name: Release
env:
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
run: npx semantic-release