Skip to content

Remove command from cmd palette (#62) #107

Remove command from cmd palette (#62)

Remove command from cmd palette (#62) #107

Workflow file for this run

name: Artificial, Inc. Workflow Author Extension (Publish)
on:
release:
types:
- published
push:
branches:
- main
jobs:
tag:
name: Tag Build
runs-on: ubuntu-latest
outputs:
version: ${{ steps.setup_id.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Versioning
id: versioning
uses: paulhatch/[email protected]
with:
tag_prefix: "v"
major_pattern: "BREAKING CHANGE:"
minor_pattern: "feat:"
version_format: "${major}.${minor}.${patch}"
bump_each_commit: false
- name: Set output
id: setup_id
run: |
VERSION=${{ steps.versioning.outputs.major }}.${{ steps.versioning.outputs.minor }}.${{ steps.versioning.outputs.patch }}
echo VERSION=$VERSION
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Tag Build
continue-on-error: true
uses: actions/github-script@v7
with:
github-token: ${{ github.token }}
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: "refs/tags/v${{steps.setup_id.outputs.version}}",
sha: context.sha
})
release:
runs-on: ubuntu-latest
needs: tag
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install the dependencies
run: npm ci
- name: Install vsce
run: npm i -g vsce
- name: Publish
run: vsce publish -p ${{ secrets.AZURE_MARKETPLACE_TOKEN }}