From 000618789a6e17c6527a462efc6d9b25016dd79b Mon Sep 17 00:00:00 2001 From: Kravets <57632712+kravetsone@users.noreply.github.com> Date: Sun, 2 Jun 2024 18:20:24 +0300 Subject: [PATCH] chore: add publish job and add bun setup --- .github/workflows/publish.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 04c12f7..25b14e9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }}