Skip to content

Commit

Permalink
chore: simplify workflows and switch to pnpm (2.x) (#482)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhedger authored Jan 31, 2025
1 parent 9917f30 commit eded185
Show file tree
Hide file tree
Showing 11 changed files with 2,477 additions and 294 deletions.
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

0 comments on commit eded185

Please sign in to comment.