Skip to content

Release Workflow

Release Workflow #104

Workflow file for this run

name: Release Workflow
on: workflow_dispatch
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
npm_config_registry: "https://registry.npmjs.org"
jobs:
publish-packages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Install the packages
run: yarn install --frozen-lockfile --ignore-engines
- name: Build the code
run: yarn build
env:
NODE_ENV: production
- name: Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn changeset publish
createGithubRelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: VS Code Marketplace publish
run: yarn publish:vsce