-
-
Notifications
You must be signed in to change notification settings - Fork 32
38 lines (36 loc) · 1.08 KB
/
~package-prerelease.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# This workflow is responsible for packaging the extension as a VSIX artifact
# for the prerelease release.
name: ~Package prerelease
on:
workflow_call:
inputs:
version:
required: true
type: string
jobs:
package:
name: Package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
with:
run_install: true
- name: Build
run: pnpm run build
- name: Patch package.json version with prerelease identifier
run: |
jq \
--arg version "${{ inputs.version }}" \
--tab '.version = $version' \
package.json > package.json.tmp \
&& mv package.json.tmp package.json
- name: Package VSIX
run: pnpm vsce package --pre-release -o biome.vsix
- name: Upload the artifact
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
with:
name: biome.vsix
path: biome.vsix