Skip to content

Commit

Permalink
chore: add publish job and add bun setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kravetsone committed Jun 2, 2024
1 parent 94dadbd commit 0006187
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 18.x

- uses: oven-sh/setup-bun@v1
- run: npm install
- run: xvfb-run -a npm run test
if: runner.os == 'Linux'
- run: npm run test
if: runner.os != 'Linux'
publish:
runs-on: ubuntu-latest
steps:
- name: Publish
if: success() && startsWith(github.ref, 'refs/tags/') && matrix.os == 'ubuntu-latest'
if: success() && startsWith(github.ref, 'refs/tags/')
run: npm run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 comments on commit 0006187

Please sign in to comment.