Skip to content

Commit

Permalink
chore: fix publisher and action publishing (biomejs#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Aug 18, 2023
1 parent 0edaece commit d0f49fc
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: echo "nightly=true" >> $GITHUB_ENV

- name: Check version changes
uses: EndBug/version-check@v1
uses: EndBug/version-check@v2
if: env.nightly != 'true'
id: version
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_js_api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: echo "nightly=true" >> $GITHUB_ENV

- name: Check version changes
uses: EndBug/version-check@v1
uses: EndBug/version-check@v2
if: env.nightly != 'true'
id: version
with:
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/release_lsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
run: echo "nightly=true" >> $GITHUB_ENV

- name: Check version changes
uses: EndBug/version-check@v1
uses: EndBug/version-check@v2
if: env.nightly != 'true'
id: version
with:
diff-search: true
file-name: editors/vscode/package.json

- name: Check Biome version changes
uses: EndBug/version-check@v1
uses: EndBug/version-check@v2
if: env.nightly != 'true'
id: biome_version
with:
Expand Down Expand Up @@ -157,18 +157,21 @@ jobs:
run: |
node ./scripts/update-nightly-version.mjs >> $GITHUB_ENV
- name: Install VCSE
run: npm i -g @vscode/vsce

- name: Package extension
run: |
npm ci
npm run compile
npx vsce package -o "../../dist/biome_lsp-${{ matrix.code-target }}.vsix" --target ${{ matrix.code-target }}
vsce package -o "../../dist/biome_lsp-${{ matrix.code-target }}.vsix" --target ${{ matrix.code-target }}
working-directory: editors/vscode
if: needs.check.outputs.prerelease != 'true'
- name: Package extension (pre-release)
run: |
npm ci
npm run compile
npx vsce package --pre-release -o "../../dist/biome_lsp-${{ matrix.code-target }}.vsix" --target ${{ matrix.code-target }}
vsce package --pre-release -o "../../dist/biome_lsp-${{ matrix.code-target }}.vsix" --target ${{ matrix.code-target }}
working-directory: editors/vscode
if: needs.check.outputs.prerelease == 'true'

Expand Down Expand Up @@ -198,13 +201,16 @@ jobs:
node-version: 18
registry-url: 'https://registry.npmjs.org'

- name: Install VCSE
run: npm i -g @vscode/vsce

- name: Publish extension to Microsoft Marketplace (pre-release)
run: npx vsce publish --pre-release --packagePath biome_lsp-*.vsix
run: vsce publish --pre-release --packagePath biome_lsp-*.vsix
if: needs.build.outputs.prerelease == 'true'
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Publish extension to Microsoft Marketplace
run: npx vsce publish --packagePath biome_lsp-*.vsix
run: vsce publish --packagePath biome_lsp-*.vsix
if: needs.build.outputs.prerelease != 'true'
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
Expand Down
2 changes: 1 addition & 1 deletion editors/vscode/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Biome VS Code Extension

[Biome](https://biome.tools/) unifies your development stack by combining the functionality of separate tools. It uses a single configuration file, has fantastic performance, and works with any stack. This extension brings Biome to your editor so that you can:
[Biome](https://biomejs.dev/) unifies your development stack by combining the functionality of separate tools. It uses a single configuration file, has fantastic performance, and works with any stack. This extension brings Biome to your editor so that you can:

- Format files *on save* or when issuing the *Format Document* command
- See lints while you type and apply code fixes
Expand Down
24 changes: 12 additions & 12 deletions editors/vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions editors/vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "biome",
"publisher": "biome",
"publisher": "biomejs",
"displayName": "Biome",
"description": "Biome LSP VS Code Extension",
"version": "0.1.0",
"version": "0.1.1",
"icon": "icon.png",
"activationEvents": [
"onLanguage:javascript",
Expand Down
2 changes: 1 addition & 1 deletion website/src/pages/vscode.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ description: Notes about the Biome's VSCode extension
---
# Biome VS Code Extension

[Biome](https://biome.tools/) unifies your development stack by combining the functionality of separate tools. It uses a single configuration file, has fantastic performance, and works with any stack. This extension brings Biome to your editor so that you can:
[Biome](https://biomejs.dev/) unifies your development stack by combining the functionality of separate tools. It uses a single configuration file, has fantastic performance, and works with any stack. This extension brings Biome to your editor so that you can:

- Format files *on save* or when issuing the *Format Document* command
- See lints while you type and apply code fixes
Expand Down

0 comments on commit d0f49fc

Please sign in to comment.