Skip to content

Commit

Permalink
chore: add installer check to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Dec 17, 2022
1 parent 987c712 commit ace32b8
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Install

on:
push:
paths:
- '.github/workflows/install.yml'
- 'package.json'
- 'scripts/**'

jobs:
pack:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- run: |
cat package.json | jq '.version = "1.0.0"' | sponge package.json
npm pack
- uses: actions/upload-artifact@v3
with:
name: installer
path: supabase-1.0.0.tgz

install:
needs: pack
strategy:
matrix:
pm: [npm, yarn]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/download-artifact@v3
with:
name: installer
path: supabase.tgz

- run: npm init -y

- if: ${{ matrix.pm == 'npm' }}
run: npm i --save-dev supabase.tgz

- if: ${{ matrix.pm == 'yarn' }}
run: yarn add -D supabase.tgz

- run: npx supabase --version

0 comments on commit ace32b8

Please # to comment.