Skip to content

refactor: use bun instead of npm (#15) #7

refactor: use bun instead of npm (#15)

refactor: use bun instead of npm (#15) #7

Workflow file for this run

name: publish release to marketplace
on:
push:
branches:
- main
permissions:
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: |
bun install
bun run vsce package
echo "filepath=$(ls *.vsix)" >> $GITHUB_ENV
echo "version=$(ls *.vsix | grep -oE '\d+\.\d+\.\d+')" >> $GITHUB_ENV
- env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: bun run vsce publish --packagePath $filepath
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release create v$version $filepath --generate-notes