This repository was archived by the owner on Apr 22, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (48 loc) · 1.69 KB
/
Copy pathrelease-patch.yml
File metadata and controls
58 lines (48 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Patch Release
on:
workflow_dispatch:
permissions:
contents: write
jobs:
release:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: scripts/package-lock.json
- name: Install dependencies
working-directory: scripts
run: npm ci
- name: Build patch release
id: release_patch
shell: pwsh
run: .\scripts\release-patch.ps1 -GitHubOutputPath $env:GITHUB_OUTPUT
- name: Commit version bump
shell: pwsh
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .codex-plugin/plugin.json extension/manifest.json scripts/package.json scripts/package-lock.json scripts/mcp-server.mjs
git commit -m "release: ${{ steps.release_patch.outputs.tag }}"
- name: Push branch and tag
shell: pwsh
run: |
git tag "${{ steps.release_patch.outputs.tag }}"
git push
git push origin "${{ steps.release_patch.outputs.tag }}"
- name: Publish GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.release_patch.outputs.tag }}
body_path: ${{ steps.release_patch.outputs.release_notes }}
files: |
${{ steps.release_patch.outputs.source_zip }}
${{ steps.release_patch.outputs.quick_deploy_zip }}
${{ steps.release_patch.outputs.checksums_file }}