bump version to 0.8.0 #23
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 | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup mise | |
uses: jdx/mise-action@v2 | |
- name: Setup pnpm | |
run: | | |
d=$(echo "$HOME/.local/share/pnpm") | |
mkdir -p "${d}" | |
echo "PNPM_HOME=${d}" >> "$GITHUB_ENV" | |
echo "${d}" >> "$GITHUB_PATH" | |
- name: Install VSCode Extension Manager | |
run: pnpm install --global @vscode/vsce@3 | |
- name: Install Open VSX Extension Manager | |
run: pnpm install --global ovsx@0 | |
- name: Install Extension Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build Extension | |
run: pnpm build | |
- name: Clear Extension | |
run: pnpm clear | |
# https://github.com/microsoft/vscode-vsce/issues/1073 | |
- name: Package Extension | |
run: | | |
vsce package \ | |
--allow-unused-files-pattern \ | |
--no-dependencies \ | |
--out moondusttheme.vsix | |
- name: Release Extension on VSCode Marketplace | |
env: | |
VSCE_PAT: ${{secrets.VSCE_RELEASE_TOKEN}} | |
run: vsce publish --packagePath moondusttheme.vsix | |
- name: Release Extension on Open VSX | |
env: | |
OVSX_PAT: ${{secrets.OVSX_RELEASE_TOKEN}} | |
run: ovsx publish --packagePath moondusttheme.vsix | |
- name: Release Extension on GitHub | |
env: | |
GH_TOKEN: ${{github.token}} | |
run: | | |
gh release create "${{github.ref_name}}" \ | |
--title "${{github.ref_name}}" \ | |
--notes "See ${{github.server_url}}/${{github.repository}}/blob/main/CHANGELOG.md/" | |
gh release upload "${{github.ref_name}}" \ | |
dist/moondusttheme-*.json \ | |
moondusttheme.vsix |