38 lines
1,022 B
YAML
38 lines
1,022 B
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: Install dependencies
|
|
shell: bash
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Configure npm auth
|
|
shell: bash
|
|
env:
|
|
NPM_TOKEN: ${{ inputs.npm-token }}
|
|
run: npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
|
|
|
|
- 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
|