This repository has been archived by the owner on Oct 9, 2024. It is now read-only.
msp/deploy: encode commit_message as base64 (#63165) #14
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: scip-typescript | |
on: | |
push: | |
paths: | |
- "**.ts" | |
- "**.tsx" | |
- "**.js" | |
jobs: | |
scip-typescript: | |
if: github.repository == 'sourcegraph/sourcegraph' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@d882d12c64e032187b2edb46d3a0d003b7a43598 # SECURITY: pin third-party action hashes | |
id: pnpm-install | |
with: | |
version: 8.9.2 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v3 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install npm dependencies | |
run: pnpm install --frozen-lockfile | |
- run: pnpm generate | |
- run: pnpm --filter ./client/web-sveltekit run sync | |
- run: pnpm dlx @sourcegraph/scip-typescript index --pnpm-workspaces --no-global-caches | |
- run: cp index.scip dump.lsif-typed | |
- name: Install src-cli | |
run: | | |
curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src | |
chmod +x /usr/local/bin/src | |
- name: Upload SCIP to Cloud | |
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress | |
env: | |
SRC_ENDPOINT: https://sourcegraph.com/ | |
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DOTCOM }} | |
- name: Upload SCIP to S2 | |
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress | |
env: | |
SRC_ENDPOINT: https://sourcegraph.sourcegraph.com/ | |
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_S2 }} | |
- name: Upload SCIP to Demo | |
run: src code-intel upload -github-token='${{ secrets.GITHUB_TOKEN }}' -no-progress || true | |
env: | |
SRC_ENDPOINT: https://demo.sourcegraph.com/ | |
SRC_ACCESS_TOKEN: ${{ secrets.SRC_ACCESS_TOKEN_DEMO }} |