Release v1.0.0 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
push: | |
tags: | |
- v* | |
concurrency: | |
group: release | |
jobs: | |
publish-marketplace: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: "https://registry.npmjs.org" | |
cache: npm | |
- name: Publish package | |
run: | | |
npm ci | |
npm run deploy | |
env: | |
VSCE_PAT: ${{ secrets.VSCE_PAT }} | |
publish-github: | |
needs: publish-marketplace | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get version from tag | |
id: get-version | |
uses: battila7/get-version-action@v2 | |
- name: Get changelog release info | |
id: changelog | |
uses: release-flow/keep-a-changelog-action@v2 | |
with: | |
command: query | |
version: ${{ steps.get-version.outputs.version-without-v }} | |
- name: Create GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: ${{ steps.changelog.outputs.version }} | |
body: ${{ steps.changelog.outputs.release-notes }} |