Chat Demo on homepage (#272) #183
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: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
env: | |
FORCE_COLOR: 3 | |
OPENAI_API_KEY: "sk-xyz" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.CHANGESET_GITHUB_TOKEN }} | |
- uses: ./.github/shared | |
- name: Create Release Pull Request | |
id: changeset | |
uses: changesets/action@v1 | |
with: | |
commit: "chore(release): 📦 version packages" | |
title: "chore(release): 📦 version packages" | |
publish: pnpm run publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.CHANGESET_GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# Changeset has some issues with pnpm so we sync it up manually | |
- name: Sync lockfile if necessary | |
if: steps.changeset.outputs.hasChangesets == 'true' | |
run: | | |
git checkout changeset-release/main | |
pnpm install --no-frozen-lockfile | |
git add . | |
git commit -m "chore(release): 📦 sync lockfile" | |
git push origin changeset-release/main |