Skip to content

Commit 9d36b74

Browse files
committed
Refactor hotfix and release workflows to only commit bumped package.json, removing unnecessary steps for compiling and packaging
1 parent 00f9493 commit 9d36b74

2 files changed

Lines changed: 6 additions & 24 deletions

File tree

.github/workflows/hotfix_workflow.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,15 @@ jobs:
7979
- name: Bump version
8080
run: node scripts/bump-version.js "${{ github.event.inputs.version }}"
8181

82-
- name: Compile extension
83-
run: pnpm run compile
84-
85-
- name: Prepare multiplatform package dependencies
86-
run: pnpm install --force
87-
88-
- name: Package extension
89-
run: pnpm exec vsce package
90-
91-
- name: Commit updated package.json and dist directory
82+
- name: Commit bumped package.json
9283
id: commit
9384
uses: EndBug/add-and-commit@v9
9485
with:
95-
add: './out/ ./promptimize-*.vsix ./package.json'
86+
add: './package.json'
9687
committer_name: GitHub Actions
9788
committer_email: actions@github.com
9889
default_author: user_info
99-
message: 'gh-action: updated compiled files and bumped version to ${{ github.event.inputs.version }} (hotfix)'
90+
message: 'gh-action: bumped version to ${{ github.event.inputs.version }} (hotfix)'
10091

10192
tag:
10293
name: Publish version

.github/workflows/release_workflow.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,24 +79,15 @@ jobs:
7979
- name: Bump version
8080
run: node scripts/bump-version.js "${{ github.event.inputs.version }}"
8181

82-
- name: Compile extension
83-
run: pnpm run compile
84-
85-
- name: Prepare multiplatform package dependencies
86-
run: pnpm install --force
87-
88-
- name: Package extension
89-
run: pnpm exec vsce package
90-
91-
- name: Commit updated package.json and dist directory
82+
- name: Commit bumped package.json
9283
id: commit
9384
uses: EndBug/add-and-commit@v9
9485
with:
95-
add: './out/ ./promptimize-*.vsix ./package.json'
86+
add: './package.json'
9687
committer_name: GitHub Actions
9788
committer_email: actions@github.com
9889
default_author: user_info
99-
message: 'gh-action: updated compiled files and bumped version to ${{ github.event.inputs.version }} (release)'
90+
message: 'gh-action: bumped version to ${{ github.event.inputs.version }} (release)'
10091

10192
tag:
10293
name: Publish version

0 commit comments

Comments
 (0)