Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 32bdc1a

Browse files
committed
[chore] 🔧 update: release management
1 parent f3f3259 commit 32bdc1a

5 files changed

Lines changed: 324 additions & 2249 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: googleapis/release-please-action@v4
17+
with:
18+
release-type: node

.github/workflows/release.yml

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
name: Release
1+
name: Publish
22

33
on:
4-
push:
5-
tags:
6-
- v*.*.*
4+
release:
5+
types: [published]
76
workflow_dispatch:
87

98
permissions:
109
contents: write
1110

1211
jobs:
13-
release:
12+
publish:
1413
runs-on: ubuntu-latest
1514

1615
steps:
@@ -20,8 +19,8 @@ jobs:
2019
- name: Setup Node.js
2120
uses: actions/setup-node@v6
2221
with:
23-
node-version: lts/*
24-
cache: npm
22+
node-version: 'lts/*'
23+
cache: 'npm'
2524

2625
- name: Install dependencies
2726
run: npm ci
@@ -34,19 +33,6 @@ jobs:
3433
with:
3534
run: npm test
3635

37-
- name: Get version from tag
38-
id: get_version
39-
if: startsWith(github.ref, 'refs/tags/')
40-
run: |
41-
VERSION=${GITHUB_REF#refs/tags/v}
42-
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
43-
echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
44-
45-
- name: Update package.json version
46-
if: startsWith(github.ref, 'refs/tags/')
47-
run: |
48-
npm version ${{ steps.get_version.outputs.VERSION }} --no-git-tag-version
49-
5036
- name: Package extension
5137
run: |
5238
npx @vscode/vsce package
@@ -57,31 +43,14 @@ jobs:
5743
name: vsix-package
5844
path: '*.vsix'
5945

60-
- name: Extract changelog for version
61-
id: changelog
62-
if: startsWith(github.ref, 'refs/tags/')
63-
run: |
64-
VERSION=${GITHUB_REF#refs/tags/v}
65-
# Extract changelog section for this version
66-
sed -n "/## \[$VERSION\]/,/## \[/p" CHANGELOG.md | sed '$d' > release_notes.md
67-
if [ ! -s release_notes.md ]; then
68-
echo "No changelog found for version $VERSION"
69-
echo "# Release $VERSION" > release_notes.md
70-
echo "See CHANGELOG.md for details." >> release_notes.md
71-
fi
72-
73-
- name: Create GitHub Release
46+
- name: Upload vsix to Release
7447
uses: ncipollo/release-action@v1
75-
if: startsWith(github.ref, 'refs/tags/')
7648
with:
49+
allowUpdates: true
50+
omitBody: true
51+
omitName: true
7752
artifacts: '*.vsix'
78-
bodyFile: release_notes.md
79-
draft: false
80-
prerelease: false
81-
name: 'Release ${{ steps.get_version.outputs.TAG }}'
82-
tag: ${{ steps.get_version.outputs.TAG }}
8353
token: ${{ secrets.GITHUB_TOKEN }}
8454

8555
- name: Publish to VS Code Marketplace
86-
if: startsWith(github.ref, 'refs/tags/')
8756
run: npx @vscode/vsce publish --packagePath *.vsix -p ${{ secrets.VSCE_PAT }}

CHANGELOG.md

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,6 @@
22

33
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
44

5-
## [0.0.1](https://github.com/OpenForgeProject/vscode-ddev-phpstan/compare/v0.5.0...v0.0.1) (2026-01-12)
6-
7-
## [0.5.0] - 2026-01-12
8-
9-
### Changed
10-
11-
- **Code Security**: Enhanced command execution security
12-
- Refactored command building to use array-based arguments to prevent command injection
13-
- Replaced direct filesystem calls with system wrappers for improved security and testability
14-
- **Release Workflow**: Major optimizations to the release process
15-
- Automated `package.json` version bumping from Git tags (no manual updates needed)
16-
- Added artifact upload for `.vsix` packages in GitHub Actions
17-
- Integrated linting steps to facilitate higher code quality checks before release
18-
- Updated GitHub Actions (`checkout`, `setup-node`) to `v6`
19-
- **Dependencies**: Updated core dependencies
20-
- Bumped VS Code engine requirement to `^1.108.0`
21-
- Updated `@types/vscode`, `@types/node`, and `ovsx`
22-
23-
### Fixed
24-
25-
- **Code Quality**: Resolved various code scanning alerts and static analysis findings
26-
- Cleaned up unused variables, imports, and unreachable code
27-
- Improved command argument handling for stability
28-
295
## [0.4.2] - 2025-10-01
306

317
### Changed

0 commit comments

Comments
 (0)