regime/actions/release/action.yml
2026-05-02 15:32:29 +02:00

42 lines
1.1 KiB
YAML

name: Semantic Release
description: Run multi-semantic-release for per-package versioning
inputs:
gitea-token:
description: "Forgejo API token with push + API access"
required: true
gitea-url:
description: "Forgejo instance URL"
required: true
npm-token:
description: "npm registry auth token"
required: true
runs:
using: composite
steps:
- name: Setup Bun
shell: bash
run: curl -fsSL https://bun.sh/install | bash && echo "$HOME/.bun/bin" >> "$GITHUB_PATH"
- name: Resolve external workspaces
shell: bash
run: bun "$GITHUB_ACTION_PATH/../../scripts/resolve-workspaces.ts"
- name: Install dependencies
shell: bash
run: bun install --no-save-lockfile
- name: Configure npm auth
shell: bash
env:
NPM_TOKEN: ${{ inputs.npm-token }}
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc
- name: Run multi-semantic-release
shell: bash
env:
GITEA_TOKEN: ${{ inputs.gitea-token }}
GITEA_URL: ${{ inputs.gitea-url }}
NPM_TOKEN: ${{ inputs.npm-token }}
run: bunx multi-semantic-release