Skip to content

Publish

Publish #3

Workflow file for this run

name: Publish
on:
workflow_dispatch:
inputs:
bump_type:
type: choice
options:
- patch
- minor
- major
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- run: pnpm install
- run: curl https://raw.githubusercontent.com/Gregoor/soy/main/README.md > README.md
- uses: fregante/setup-git-user@v1
- env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: |
pnpm build
npx @vscode/vsce package --no-dependencies --allow-missing-repository
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: ${{ inputs.bump_type }}
- run: git status
- env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
run: |
npx @vscode/vsce publish ${{ steps.tag_version.outputs.new_version }} \
--no-dependencies \
--allow-missing-repository \
--no-update-package-json
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}