61789386cb
BREAKING CHANGE: Requires [Actions Runner v2.327.1](https://github.com/actions/runner/releases/tag/v2.327.1) or later if you are using a self-hosted runner. --------- Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
42 lines
955 B
YAML
42 lines
955 B
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "*.x"
|
|
- main
|
|
- beta
|
|
|
|
permissions:
|
|
contents: write
|
|
issues: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
release:
|
|
name: release
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# build local version to create token
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: package.json
|
|
cache: 'npm'
|
|
|
|
- run: npm ci
|
|
- run: npm run build
|
|
- uses: ./
|
|
id: app-token
|
|
with:
|
|
app-id: ${{ vars.RELEASER_APP_ID }}
|
|
private-key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }}
|
|
# install release dependencies and release
|
|
- run: npm install --no-save @semantic-release/git semantic-release-plugin-github-breaking-version-tag
|
|
- run: npx semantic-release --debug
|
|
env:
|
|
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|