update env vars (#50963) #4
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: Embedding SDK | |
on: | |
push: | |
branches: | |
- "master" | |
- "release-**" | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
sdk-build: | |
if: contains(github.event.pull_request.labels.*.name, 'embedding-sdk-build') | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prepare front-end environment | |
uses: ./.github/actions/prepare-frontend | |
- name: Prepare back-end environment | |
uses: ./.github/actions/prepare-backend | |
with: | |
m2-cache-key: "cljs" | |
- name: Build SDK bundle | |
run: yarn run build-embedding-sdk | |
- name: Generate SDK package.json | |
run: yarn run embedding-sdk:generate-package "$GITHUB_SHA" | |
- name: Generate .npmrc for Github npm registry | |
uses: actions/setup-node@v4 | |
with: | |
registry-url: "https://npm.pkg.github.com" | |
- name: Publish package | |
run: yarn run embedding-sdk:publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |