feat(connect-react): prep preview of @pipedream/connect-react (#14718) #7402
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
on: | |
push: | |
branches: | |
- master | |
paths: | |
- 'components/**' | |
jobs: | |
publish-components: | |
name: Publish Marketplace Content to Pipedream | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/[email protected] | |
- uses: pnpm/[email protected] | |
with: | |
version: 9.14.2 | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
run: | | |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)" | |
- uses: actions/cache@v4 | |
name: Setup pnpm cache | |
with: | |
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: Install dependencies | |
run: pnpm install -r --no-frozen-lockfile | |
- name: Setup Node Env | |
uses: actions/[email protected] | |
with: | |
node-version: 14 | |
registry-url: https://registry.npmjs.org/ | |
cache: 'pnpm' | |
- name: Get Changed Files | |
id: files | |
uses: Ana06/[email protected] | |
with: | |
format: 'csv' | |
- name: Publish changes to marketplace content | |
id: publish | |
env: | |
PD_API_KEY: ${{ secrets.PD_API_KEY }} | |
ENDPOINT: ${{ secrets.ENDPOINT }} | |
shell: bash {0} # don't fast fail | |
run: | | |
printf -v added_modified_renamed_files '%s,%s' '${{ steps.files.outputs.added_modified }}' '${{ steps.files.outputs.renamed }}' | |
pnpm dlx ts-node --esm scripts/updateMarketplaceReadme.mts $added_modified_renamed_files |