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
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Package

on:
push:
tags:
- "v*"

permissions:
id-token: write # Required for OIDC
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "24"
cache: "pnpm"
registry-url: "https://registry.npmjs.org"

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run build
- run: pnpm run test
- run: pnpm -F @cmfcmf/docusaurus-search-local pack
- run: pnpm -F @cmfcmf/docusaurus-search-local publish
3 changes: 3 additions & 0 deletions .versionrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ module.exports = {
// Format the generated changelog.
postchangelog: "pnpm run format",
},
skip: {
tag: true,
},
header: `\
# Change Log

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"lint:dependencies": "syncpack list-mismatches",
"format:style": "prettier --write .",
"format:dependencies": "syncpack fix-mismatches",
"release": "bash scripts/release.sh"
"bump-version": "commit-and-tag-version"
},
"lint-staged": {
".": [
Expand Down
18 changes: 0 additions & 18 deletions scripts/release.sh

This file was deleted.