bb368d6a10
# General Improvements > This is a classic @GrantBirki drive-by PR 🚗 This pull request does the following: - Lightly updates and formats a few existing Actions workflows - Adds a new `package-check` workflow to validate the contents of the `dist/` directory have been properly built - Uses a `.node-version` file so that local development and Actions remain on the same pinned version of node - Adds status badges to the readme for visual effect ⭐ 🎨
40 lines
929 B
YAML
40 lines
929 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:
|
|
# build local version to create token
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: .node-version
|
|
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 }}
|