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
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Release the package

on:
workflow_dispatch:
inputs:
semver:
description: 'Release bump type'
required: true
type: choice
options:
- patch
- minor
- major

permissions: {}

jobs:
release:
permissions:
id-token: write # required for npm provenance via OIDC
contents: write # required to push the release commit and the tag
uses: fastify/workflows/.github/workflows/reusable-release.yml@b1a11bce713bc857e52b2231fec3c89071ad3135
with:
semver: ${{ inputs.semver }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"build:post": "node post-build.js",
"build:test": "attw --pack .",
"build": "npm-run-all build:clean build:cjs build:esm build:post build:test",
"release:build": "npm run build",
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"test:node": "node --test test/index.cjs",
Expand Down Expand Up @@ -97,4 +98,4 @@
"tstyche": "^7.0.0",
"typescript": "~6.0.2"
}
}
}
Loading