Skip to content
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

chore: simplify workflows and switch to pnpm (2.x) #482

Merged
merged 1 commit into from
Jan 31, 2025
Merged
Show file tree
Hide file tree
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
12 changes: 0 additions & 12 deletions .github/actions/setup/action.yaml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/_build.yaml

This file was deleted.

61 changes: 0 additions & 61 deletions .github/workflows/_package.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/_quality.yaml

This file was deleted.

33 changes: 24 additions & 9 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,33 @@ name: Integrate

on:
push:
branches: ["main"]
branches: ["2.x"]
pull_request:
branches: ["2.x"]
workflow_dispatch:

jobs:
quality:
name: Quality
uses: ./.github/workflows/_quality.yaml
name: Quality checks
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci --reporter=github
build:
name: Build
uses: ./.github/workflows/_build.yaml
package:
name: Package
needs: [build]
uses: ./.github/workflows/_package.yaml
name: Build and package
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
57 changes: 0 additions & 57 deletions .github/workflows/lint-pr-title.yaml

This file was deleted.

112 changes: 0 additions & 112 deletions .github/workflows/publish.yaml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/release-stable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release stable (2.x)

on:
workflow_dispatch:
jobs:
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) }}
Binary file removed bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,5 @@
"dependencies": false,
"skipLicense": true
},
"packageManager": "bun@1.1.20"
"packageManager": "pnpm@9.13.2"
}
Loading