release: v0.3.1 #30
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: | |
branches: | |
- main | |
jobs: | |
publish: | |
if: contains(github.event.head_commit.message, 'release') | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: oven-sh/setup-bun@v1 | |
- name: Install dependencies | |
run: bun install | |
- name: Generate | |
run: bun dev | |
- name: Publish | |
run: bunx vsce publish -p ${{ secrets.VSCE_PAT }} | |
github-release: | |
if: contains(github.event.head_commit.message, 'release') | |
name: GitHub Release | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get package version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@v1.3.1 | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
with: | |
generateReleaseNotes: true | |
makeLatest: true | |
name: Hibiscus Theme v${{ steps.package-version.outputs.current-version }} | |
tag: hibiscus-theme-v${{ steps.package-version.outputs.current-version }} |