Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
Add publish workflow for minor releases
Browse files Browse the repository at this point in the history
  • Loading branch information
monstajoe2002 committed Dec 2, 2023
1 parent bd158f4 commit 227a551
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ on:
push:
branches:
- release/minor

release:
types:
- created
jobs:
merge:
needs: build
Expand Down Expand Up @@ -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'
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 }}

0 comments on commit 227a551

Please sign in to comment.