Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit 79d034f

Browse files
authored
chore: add preview release (#634)
1 parent 823f28f commit 79d034f

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Preview release
2+
3+
permissions:
4+
pull-requests: write
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
pull_request:
11+
types: [opened, synchronize, labeled]
12+
13+
jobs:
14+
preview:
15+
if: >
16+
github.repository == 'supabase/postgrest-js' &&
17+
(github.event_name == 'push' ||
18+
(github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'trigger: preview')))
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout code
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20'
28+
cache: 'npm'
29+
30+
- name: Install dependencies
31+
run: npm ci
32+
33+
- name: Build
34+
run: npm run build
35+
36+
- run: npx pkg-pr-new@latest publish --compact

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
[![Build](https://github.com/supabase/postgrest-js/workflows/CI/badge.svg)](https://github.com/supabase/postgrest-js/actions?query=branch%3Amaster)
44
[![Package](https://img.shields.io/npm/v/@supabase/postgrest-js)](https://www.npmjs.com/package/@supabase/postgrest-js)
55
[![License: MIT](https://img.shields.io/npm/l/@supabase/postgrest-js)](#license)
6+
[![pkg.pr.new](https://pkg.pr.new/badge/supabase/postgrest-js)](https://pkg.pr.new/~/supabase/postgrest-js)
7+
68

79
Isomorphic JavaScript client for [PostgREST](https://postgrest.org). The goal of this library is to make an "ORM-like" restful interface.
810

0 commit comments

Comments
 (0)