Skip to content

Commit 3f9108c

Browse files
authored
Merge pull request #7279 from continuedev/nate/fix-release
fix: stable reelase paths
2 parents 1220021 + a47ff2e commit 3f9108c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/stable-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
- name: Find beta version to promote
6868
if: ${{ (inputs.release_type || 'promote-beta') == 'promote-beta' }}
6969
id: find_beta
70+
working-directory: extensions/cli
7071
env:
7172
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7273
run: |
@@ -116,6 +117,7 @@ jobs:
116117
117118
- name: Download and verify beta package
118119
if: ${{ (inputs.release_type || 'promote-beta') == 'promote-beta' }}
120+
working-directory: extensions/cli
119121
env:
120122
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
121123
run: |
@@ -131,6 +133,7 @@ jobs:
131133
132134
- name: Prepare package for beta promotion
133135
if: ${{ (inputs.release_type || 'promote-beta') == 'promote-beta' }}
136+
working-directory: extensions/cli
134137
run: |
135138
# Copy the beta package contents
136139
cp -r package/* .
@@ -140,6 +143,7 @@ jobs:
140143
141144
- name: Prepare package for direct stable release
142145
if: ${{ inputs.release_type == 'direct-stable' }}
146+
working-directory: extensions/cli
143147
run: |
144148
# Install dependencies for direct build
145149
npm ci
@@ -148,9 +152,11 @@ jobs:
148152
npm version ${{ inputs.stable_version }} --no-git-tag-version
149153
150154
- name: Build (verification step)
155+
working-directory: extensions/cli
151156
run: npm run build
152157

153158
- name: Run tests (verification step)
159+
working-directory: extensions/cli
154160
run: npm test
155161

156162
- name: Set final version
@@ -167,6 +173,7 @@ jobs:
167173
echo "release_notes=$RELEASE_NOTES" >> $GITHUB_OUTPUT
168174
169175
- name: Publish stable to npm
176+
working-directory: extensions/cli
170177
env:
171178
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
172179
run: |
@@ -196,4 +203,4 @@ jobs:
196203
run: |
197204
# Mark the original beta release as superseded
198205
gh release edit "v${{ steps.find_beta.outputs.beta_version }}" \
199-
--notes "This beta version has been promoted to stable as v${{ steps.final_version.outputs.stable_version }}."
206+
--notes "This beta version has been promoted to stable as v${{ steps.final_version.outputs.stable_version }}."

0 commit comments

Comments
 (0)