Skip to content

Commit

Permalink
chore: use dummy workflow to register the workflow in the ui
Browse files Browse the repository at this point in the history
  • Loading branch information
nhedger committed Jan 31, 2025
1 parent 9fae30d commit 36e9790
Showing 1 changed file with 35 additions and 27 deletions.
62 changes: 35 additions & 27 deletions .github/workflows/release-stable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,43 @@ name: Release stable (2.x)

on:
workflow_dispatch:
push:
branches:
- "2.x"
jobs:
release:
dummy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Build the extension
run: pnpm build
- name: Package the extension
run: pnpm exec vsce package -o biome.vsix
- name: Publish to Visual Studio Marketplace
run: pnpm exec vsce publish --packagePath biome.vsix
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Read version from package.json
id: version
run: echo "version=$(jq -r '.version' package.json)" >> "$GITHUB_OUTPUT"
- name: Publish extension to Open VSX Registry
run: bun ovsx publish --packagePath biome.vsix
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}
- name: Publish extension to GitHub Releases
uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2
with:
name: "${{ format('v{0}', steps.version.outputs.version) }}"
body_path: RELEASE_NOTES.md
files: biome.vsix
tag_name: ${{ format('v{0}', steps.version.outputs.version) }}
# release:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup PNPM
# uses: pnpm/action-setup@v4
# with:
# run_install: true
# - name: Build the extension
# run: pnpm build
# - name: Package the extension
# run: pnpm exec vsce package -o biome.vsix
# - name: Publish to Visual Studio Marketplace
# run: pnpm exec vsce publish --packagePath biome.vsix
# env:
# VSCE_PAT: ${{ secrets.VSCE_PAT }}
# - name: Read version from package.json
# id: version
# run: echo "version=$(jq -r '.version' package.json)" >> "$GITHUB_OUTPUT"
# - name: Publish extension to Open VSX Registry
# run: bun ovsx publish --packagePath biome.vsix
# env:
# OVSX_PAT: ${{ secrets.OVSX_PAT }}
# - name: Publish extension to GitHub Releases
# uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2
# with:
# name: "${{ format('v{0}', steps.version.outputs.version) }}"
# body_path: RELEASE_NOTES.md
# files: biome.vsix
# tag_name: ${{ format('v{0}', steps.version.outputs.version) }}

0 comments on commit 36e9790

Please sign in to comment.