Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 12 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,18 @@ name: Release Full
on:
workflow_dispatch:
inputs:
version:
type: choice
description: "Release Version Type"
required: true
default: "patch"
options:
- major
- premajor
- minor
- preminor
- patch
- prepatch
- prerelease

tag:
type: choice
description: "Release Npm Tag"
required: true
default: "latest"
default: "nightly"
options:
- alpha
- beta
- canary
- nightly
- latest
- beta
- alpha
- nightly
- rc

dry_run:
type: boolean
Expand Down Expand Up @@ -71,9 +58,10 @@ jobs:
- name: Run Test
run: pnpm run test

- name: Try release to npm
run: pnpm run release
env:
DRY_RUN: ${{ inputs.dry_run }}
TAG: ${{ inputs.tag }}
VERSION: ${{ inputs.version }}
- name: Dry run release to npm
if: inputs.dry_run
run: node scripts/release.mjs --dry-run --tag ${{ inputs.tag }}

- name: Release to npm
if: ${{ !inputs.dry_run }}
run: node scripts/release.mjs --tag ${{ inputs.tag }}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"lint:write": "biome check . --write",
"prepare": "simple-git-hooks && npm run build",
"test": "jest --colors",
"release": "node ./scripts/release.mjs"
"release": "node ./scripts/release.mjs",
"bump": "npx bumpp"
},
"files": ["client", "dist", "exports"],
"simple-git-hooks": {
Expand All @@ -41,6 +42,8 @@
"@rspack/core": "1.4.11",
"@types/jest": "29.5.14",
"@types/node": "^22.17.0",
"bumpp": "^10.2.3",
"cac": "^6.7.14",
"cross-env": "^10.0.0",
"execa": "9.6.0",
"fs-extra": "11.3.0",
Expand Down
Loading