Skip to content

Commit

Permalink
Add shell explicitly to run commands in action.yml (#262)
Browse files Browse the repository at this point in the history
## Problem

Apparently the `run` command needs `shell` to be explicitly below.

## Type of Change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update
- [x] Infrastructure change (CI configs, etc)
- [ ] Non-code change (docs, etc)
- [ ] None of the above: (explain here)
  • Loading branch information
aulorbe authored Aug 27, 2024
1 parent 554958d commit 9182e27
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/actions/e2e-testing/edge/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,29 @@ runs:

- name: Build pinecone-ts-client code
run: npm run build
shell: bash

- name: Package pinecone-ts-client code
run: npm pack
shell: bash

- name: Clone Pinecone Vercel app into pinecone-ts-client
run: git clone [email protected]:pinecone-io/pinecone-rag-demo.git && cd pinecone-rag-demo && git pull origin main
run: |
git clone [email protected]:pinecone-io/pinecone-rag-demo.git
cd pinecone-rag-demo
git pull origin main
shell: bash

- name: Move package to pinecone-rag-demo
run: mv pinecone-database-pinecone-*.tgz .

- name: Install Pinecone Vercel app dependencies
run: npm install
shell: bash

- name: Install pinecone-ts-client "main" branch code into the Vercel app
run: npm install pinecone-database-pinecone-*.tgz
shell: bash

- name: Set up environment variables
env:
Expand All @@ -60,22 +68,27 @@ runs:

- name: Install pnpm
run: npm install -g pnpm
shell: bash

- name: Install dependencies with pnpm
run: pnpm install
shell: bash

- name: Remove linting temporarily
run: rm -rf .eslintrc.json
shell: bash

- name: Build Pinecone Vercel app
run: |
pnpm run build
run: pnpm run build
shell: bash

- name: Install Vercel CLI
run: pnpm add -g vercel
shell: bash

- name: Deploy to Vercel
env:
VERCEL_TEAM_SCOPE: ${{ inputs.VERCEL_TEAM_SCOPE }}
VERCEL_TOKEN: ${{ inputs.VERCEL_TOKEN }}
run: vercel deploy --token=$VERCEL_TOKEN --scope=$VERCEL_TEAM_SCOPE
shell: bash

0 comments on commit 9182e27

Please sign in to comment.