feat(workflow): add Google Search toggle to LLM node #22
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-vscode-prerelease | |
on: | |
push: | |
branches: | |
- custom-builds # Only run on custom-builds branch | |
workflow_dispatch: | |
jobs: | |
release: | |
if: (github.ref == 'refs/heads/custom-builds' || github.event_name == 'workflow_dispatch') && github.repository == 'PriNova/cody' | |
runs-on: ubuntu-latest | |
timeout-minutes: 20 | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # Get all tags | |
- uses: actions/setup-node@v3 | |
with: | |
node-version-file: .tool-versions | |
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # SECURITY: pin third-party action hashes | |
with: | |
run_install: true | |
- run: pnpm build | |
- run: CODY_RELEASE_TYPE=insiders pnpm -C vscode run release:dry-run | |
# New step to extract the package version and format it as "vscode-v<version>" | |
- name: Get package version | |
id: version | |
run: | | |
VERSION=$(jq -r .version vscode/package.json) | |
echo "version=vscode-v${VERSION}" >> $GITHUB_OUTPUT | |
- name: Create/Update Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./vscode/dist/cody-custom.vsix | |
name: Release ${{ github.ref_name }} | |
tag_name: ${{ github.ref_name }} | |
body: | | |
Release ${{ github.ref_name }} ${{ steps.version.outputs.version }} | |
Automated release from tag push | |
draft: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |