Skip to content

chore: use self-hosted run to publish #238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,48 @@ jobs:
env:
OVSX_PAT: ${{ secrets.RSLINT_OVSX_PAT }}
run: |
sleep infinity
if [ "${{ inputs.dry_run }}" = "true" ]; then
echo "🚀 DRY RUN: Building and packaging for Open VSX Registry without publishing..."
if [ "${{ inputs.extension_type }}" = "pre-release" ]; then
pnpm publish:ovsx --prerelease --dry-run
else
pnpm publish:ovsx --dry-run
fi
else
if [ "${{ inputs.extension_type }}" = "pre-release" ]; then
pnpm publish:ovsx --prerelease
else
pnpm publish:ovsx
fi
fi

publish-extension-open-vsx-selfhost:
if: ${{ inputs.to_release == 'all' || inputs.to_release == 'extension' }}
name: ${{ inputs.dry_run == true && 'Dry Run - Open VSX Extensions' || 'Publish Open VSX Extensions' }}
needs: [build]
runs-on: rspack-ubuntu-22.04-large
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
ref: ${{ github.event.inputs.branch }}
submodules: true

- name: Setup Node
uses: ./.github/actions/setup-node

- name: Download Artifact
uses: actions/[email protected]
with:
path: binaries

- name: Build and publish to Open VSX Registry
env:
OVSX_PAT: ${{ secrets.RSLINT_OVSX_PAT }}
run: |
sleep infinity
if [ "${{ inputs.dry_run }}" = "true" ]; then
echo "🚀 DRY RUN: Building and packaging for Open VSX Registry without publishing..."
if [ "${{ inputs.extension_type }}" = "pre-release" ]; then
Expand Down
Loading