Skip to content

Commit

Permalink
feat(release): vsix release on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Paraskos committed Oct 12, 2022
1 parent 691e564 commit cfc031c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 42 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,22 @@ jobs:
run: |
npm ci
npm run build
npx vsce package
env:
CI: true
- uses: cycjimmy/semantic-release-action@v2
id: semantic
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Do something when a new release published
if: steps.semantic.outputs.new_release_published == 'true'
run: |
echo ver: ${{ steps.semantic.outputs.new_release_version }}
echo maj: ${{ steps.semantic.outputs.new_release_major_version }}
echo min: ${{ steps.semantic.outputs.new_release_minor_version }}
echo pat: ${{ steps.semantic.outputs.new_release_patch_version }}
21 changes: 0 additions & 21 deletions .github/workflows/semantic-release.yml

This file was deleted.

20 changes: 0 additions & 20 deletions .github/workflows/vsix-release.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ plugins:
chore(release): ${nextRelease.version}

${nextRelease.notes}
- "@semantic-release/github"
- "@semantic-release/github":
assets:
- path: "**/*.vsix"
label: "Visual Studio Extension Package"

0 comments on commit cfc031c

Please sign in to comment.