forked from supabase/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
130 lines (115 loc) · 3.09 KB
/
Copy pathinstall.yml
File metadata and controls
130 lines (115 loc) · 3.09 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
name: Install
on:
pull_request:
paths:
- ".github/workflows/install.yml"
- "package.json"
- "scripts/**"
push:
branches:
- develop
paths:
- ".github/workflows/install.yml"
- "package.json"
- "scripts/**"
permissions:
contents: read
jobs:
pack:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v6
- run: |
jq -c '.version = "1.28.0"' package.json > tmp.$$.json
mv tmp.$$.json package.json
npm pack
- uses: actions/upload-artifact@v6
with:
name: installer
path: supabase-1.28.0.tgz
npm:
needs: pack
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v7
with:
name: installer
- run: npm init -y
- run: npm i --save-dev ./supabase-1.28.0.tgz
- run: npx --no-install supabase --version
yarn:
needs: pack
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v7
with:
name: installer
- run: yarn init -y
- run: yarn add -D ./supabase-1.28.0.tgz
- run: yarn supabase --version
yarn_berry:
needs: pack
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v7
with:
name: installer
- run: yarn set version berry
# - run: yarn config set nodeLinker node-modules
- run: yarn init -y
- run: yarn add -D ./supabase-1.28.0.tgz
- if: ${{ matrix.os != 'windows-latest' }}
run: yarn supabase --version
# Workaround for running extensionless executable on windows
- if: ${{ matrix.os == 'windows-latest' }}
run: |
& "$(yarn bin supabase).exe" --version
pnpm:
needs: pack
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v7
with:
name: installer
- run: npm install -g pnpm
- run: pnpm init
# https://github.com/pnpm/pnpm/issues/9124#issuecomment-2663021284
- run: pnpm i --save-dev ./supabase-1.28.0.tgz --allow-build=supabase
- run: pnpm supabase --version
bun:
needs: pack
strategy:
fail-fast: false
matrix:
# Bun build is experimental on windows
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v7
with:
name: installer
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: |
echo '{"trustedDependencies": ["supabase"]}' > package.json
- run: bun add -D ./supabase-1.28.0.tgz
- run: bunx supabase --version