diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index de25dae..052a3b2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,9 @@ on: push: branches: - release/minor - + release: + types: + - created jobs: merge: needs: build @@ -32,7 +34,14 @@ jobs: with: node-version: 16.x - run: npm install - - run: xvfb-run -a npm test - if: runner.os == 'Linux' - - run: npm test - if: runner.os != 'Linux' \ No newline at end of file + publish: + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Publish + if: success() && startsWith(github.ref, 'refs/tags/') + run: npm run deploy\:minor + env: + VSCE_PAT: ${{ secrets.VSCE_PAT }} \ No newline at end of file