Release #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Release" | |
on: | |
push: | |
branches: | |
- "beta" | |
- "alpha" | |
workflow_dispatch: | |
inputs: | |
draft: | |
type: boolean | |
description: "Draft release" | |
default: false | |
release_type: | |
type: choice | |
description: "Release type" | |
default: "auto" | |
options: | |
- "auto" | |
- "patch" | |
- "minor" | |
- "major" | |
jobs: | |
publish: | |
name: "Publish" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout the repository" | |
uses: actions/[email protected] | |
- name: "Setup pnpm" | |
uses: pnpm/[email protected] | |
- name: "Setup node" | |
uses: actions/[email protected] | |
with: | |
node-version-file: package.json | |
cache: "pnpm" | |
- name: "Install dependencies" | |
run: pnpm install | |
- name: "Release Package 📦" | |
run: pnpm dlx @jcwillox/semantic-release-config | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SEMANTIC_RELEASE_GITHUB_DRAFT: ${{ inputs.draft }} | |
SEMANTIC_RELEASE_FORCE_RELEASE: ${{ inputs.release_type }} | |
SEMANTIC_RELEASE_GITHUB_ASSETS: "dist/*" | |
SEMANTIC_RELEASE_CMD_PREPARE: "VERSION=${nextRelease.version} pnpm build" |