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 aa4fd0e commit 9eebd04
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: |
jq -c '.version = "1.0.0"' package.json > tmp.$$.json
mv tmp.$$.json 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

- run: npm init -y

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

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

- run: npx supabase --version

0 comments on commit 9eebd04

Please # to comment.