Skip to content

Commit

Permalink
fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Pozdnyakov committed Feb 27, 2023
1 parent b97867c commit b8484ec
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,22 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: 10.x
node-version: 18.x

- run: npm install
- run: npm install --global yarn

- run: xvfb-run -a npm test
- run: yarn

- run: yarn run compile

- run: xvfb-run -a yarn test
if: runner.os == 'Linux'

- run: npm test
- run: yarn test
if: runner.os != 'Linux'

- name: Publish
if: success() && startsWith( github.ref, 'refs/tags/releases/') && matrix.os == 'ubuntu-latest'
run: npm run deploy
run: yarn run deploy
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 comments on commit b8484ec

Please sign in to comment.