Skip to content

Release

Release #119

Workflow file for this run

name: Release
on:
workflow_run:
workflows: ["Build and Test"]
branches: [master]
types:
- completed
permissions:
id-token: write # Required for OIDC
contents: write # To create releases
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"
- name: Enable Corepack
run: corepack enable
- name: Install dependencies
run: yarn install --immutable
- name: Build
run: yarn build
- name: Configure Yarn authentication and settings
run: |
cat <<EOF > .yarnrc.yml
nodeLinker: node-modules
npmRegistryServer: "https://registry.npmjs.org"
npmScopes:
sidequest:
npmRegistryServer: "https://registry.npmjs.org"
EOF
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: npx semantic-release