Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci for releasing #7

Merged
merged 3 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 8 additions & 33 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,39 +8,7 @@ on:
required: true

jobs:
pre-release-checks:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: npm install --also=dev

- name: Build for integration tests
run: npm run build:test

- name: Run integration tests
run: npm run test:integration

- name: Build production version
run: npm run build

- name: Run e2e tests
run: npm run test:e2e

release:
needs: pre-release-checks
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
Expand All @@ -51,7 +19,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: 'main' # Ensures the main branch is checked out
ref: 'main' # Ensures the main branch is checked out

- name: Set up Node.js
uses: actions/setup-node@v2
Expand All @@ -76,6 +44,13 @@ jobs:
- name: Build production version
run: npm run build

- name: Display changes
run: |
echo "Showing status..."
git status
echo "Showing diff..."
git diff

- name: Update package.json version and create Git tag
run: npm version ${{ github.event.inputs.version }}

Expand Down
Loading
Loading