Skip to content

Commit

Permalink
feat: update npm publish workflow to use github release version (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <[email protected]>
  • Loading branch information
devin-ai-integration[bot] and hanxiao authored Feb 6, 2025
1 parent df99251 commit def6ebe
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,24 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run lint and tests
- name: Run lint
env:
BRAVE_API_KEY: ${{ secrets.BRAVE_API_KEY }}
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
JINA_API_KEY: ${{ secrets.JINA_API_KEY }}
GOOGLE_API_KEY: ${{ secrets.GEMINI_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
npm run lint
npm test
run: npm run lint

- name: Build TypeScript
run: npm run build

- name: Update version from release
run: |
# Get release tag without 'v' prefix
VERSION=$(echo ${{ github.ref_name }} | sed 's/^v//')
# Update version in package.json
npm version $VERSION --no-git-tag-version --allow-same-version
- name: Publish to npm
env:
Expand Down

0 comments on commit def6ebe

Please sign in to comment.