Files
create-github-app-token/.github/workflows/release.yml
T

33 lines
801 B
YAML

name: release
"on":
push:
branches:
- main
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version: lts/*
- run: npm ci
- run: npm run build
- uses: ./ # Uses the action in the root directory
id: app-token
with:
app_id: ${{ vars.RELEASER_APP_ID }}
private_key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
- run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}