Skip to content

Commit 194b361

Browse files
committed
chore: use self-hosted run to publish
use self-hosted run to publish
1 parent 509cbb7 commit 194b361

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,48 @@ jobs:
172172
env:
173173
OVSX_PAT: ${{ secrets.RSLINT_OVSX_PAT }}
174174
run: |
175+
sleep infinity
176+
if [ "${{ inputs.dry_run }}" = "true" ]; then
177+
echo "🚀 DRY RUN: Building and packaging for Open VSX Registry without publishing..."
178+
if [ "${{ inputs.extension_type }}" = "pre-release" ]; then
179+
pnpm publish:ovsx --prerelease --dry-run
180+
else
181+
pnpm publish:ovsx --dry-run
182+
fi
183+
else
184+
if [ "${{ inputs.extension_type }}" = "pre-release" ]; then
185+
pnpm publish:ovsx --prerelease
186+
else
187+
pnpm publish:ovsx
188+
fi
189+
fi
190+
191+
publish-extension-open-vsx-selfhost:
192+
if: ${{ inputs.to_release == 'all' || inputs.to_release == 'extension' }}
193+
name: ${{ inputs.dry_run == true && 'Dry Run - Open VSX Extensions' || 'Publish Open VSX Extensions' }}
194+
needs: [build]
195+
runs-on: rspack-ubuntu-22.04-large
196+
steps:
197+
- name: Checkout
198+
uses: actions/checkout@v4
199+
with:
200+
fetch-depth: 1
201+
ref: ${{ github.event.inputs.branch }}
202+
submodules: true
203+
204+
- name: Setup Node
205+
uses: ./.github/actions/setup-node
206+
207+
- name: Download Artifact
208+
uses: actions/[email protected]
209+
with:
210+
path: binaries
211+
212+
- name: Build and publish to Open VSX Registry
213+
env:
214+
OVSX_PAT: ${{ secrets.RSLINT_OVSX_PAT }}
215+
run: |
216+
sleep infinity
175217
if [ "${{ inputs.dry_run }}" = "true" ]; then
176218
echo "🚀 DRY RUN: Building and packaging for Open VSX Registry without publishing..."
177219
if [ "${{ inputs.extension_type }}" = "pre-release" ]; then

0 commit comments

Comments
 (0)