Release #15
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 | |
on: | |
workflow_dispatch: | |
jobs: | |
build_and_deploy: | |
name: Build and Release | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
steps: | |
- name: Checkout respository | |
uses: actions/checkout@v4 | |
- name: Set up Bun | |
uses: oven-sh/setup-bun@v1 | |
- name: Cache node modules | |
id: bun-cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
node_modules/ | |
key: ${{ runner.os }}-node-${{ hashFiles('bun.lockb') }} | |
restore-keys: | | |
${{ runner.os }}-node | |
- name: Install bun dependencies | |
run: bun install --frozen-lockfile | |
- name: Run Build VSCode and Dependencies | |
run: bun build:vscode | |
- name: Publish VSCode | |
env: | |
VSCE_PAT: ${{ secrets.VSCODE_TOKEN }} | |
run: bun publish:vscode | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
registry-url: 'https://registry.npmjs.org' | |
- name: Publish NPM | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NPM_CONFIG_PROVENANCE: true | |
run: bun publish:npm |