fix: use npm proxy config for node fetch #114
Workflow file for this run
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: Install | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/install.yml' | |
- 'package.json' | |
- 'scripts/**' | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/install.yml' | |
- 'package.json' | |
- 'scripts/**' | |
jobs: | |
pack: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
jq -c '.version = "1.28.0"' package.json > tmp.$$.json | |
mv tmp.$$.json package.json | |
npm pack | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: installer | |
path: supabase-1.28.0.tgz | |
install: | |
needs: pack | |
strategy: | |
fail-fast: false | |
matrix: | |
pm: [npm, yarn, pnpm] | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: installer | |
- run: npm init -y | |
- if: ${{ matrix.pm == 'npm' }} | |
run: npm i --save-dev ./supabase-1.28.0.tgz | |
- if: ${{ matrix.pm == 'yarn' }} | |
run: yarn add -D ./supabase-1.28.0.tgz | |
- if: ${{ matrix.pm == 'pnpm' }} | |
run: | | |
npm install -g pnpm | |
pnpm i --save-dev ./supabase-1.28.0.tgz | |
- run: npx supabase --version |