-
-
Notifications
You must be signed in to change notification settings - Fork 205
56 lines (46 loc) · 1.19 KB
/
install.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Install
on:
pull_request:
paths:
- '.github/workflows/install.yml'
- 'package.json'
- 'scripts/**'
push:
paths:
- '.github/workflows/install.yml'
- 'package.json'
- 'scripts/**'
jobs:
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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:
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