Merge pull request #35 from tmr232/release-0.0.10 #147
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Package Extension | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
tags-ignore: | |
- "**" | |
release: | |
types: | |
- created | |
jobs: | |
test: | |
name: "Test" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- run: bun install | |
- run: bun prettier . --check | |
- run: bun eslint | |
- run: bun run tsc --noEmit | |
- name: Test | |
run: bun test | |
package: | |
name: "Package" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- run: bun install --production | |
- run: bun run package | |
- name: Setup Environment | |
run: node -e "console.log('PACKAGE_VERSION=' + require('./package.json').version + '\nPACKAGE_NAME=' + require('./package.json').name + '-' + require('./package.json').version)" >> $GITHUB_ENV | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.PACKAGE_NAME }}.vsix | |
path: ./${{ env.PACKAGE_NAME }}.vsix | |
- name: Publish | |
if: success() && startsWith(github.ref, 'refs/tags/v') | |
run: bun vsce-publish | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
jetbrains: | |
name: "JetBrains" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v2 | |
- run: bun install | |
- run: bun build-jetbrains | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: "Jetbrains" | |
path: "./dist/jetbrains/" |