Release Workflow #104
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 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 |