Skip to content

Commit d75a586

Browse files
committed
chore: add preview release
1 parent 99cda28 commit d75a586

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

.github/workflows/preview-release.yml

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+
- main
10+
pull_request:
11+
types: [opened, synchronize, labeled]
12+
13+
jobs:
14+
preview:
15+
if: >
16+
github.repository == 'supabase/functions-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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# `functions-js`
22

3-
[![Coverage Status](https://coveralls.io/repos/github/supabase/functions-js/badge.svg?branch=main)](https://coveralls.io/github/supabase/functions-js?branch=main)
3+
[![Coverage Status](https://coveralls.io/repos/github/supabase/functions-js/badge.svg?branch=main)](https://coveralls.io/github/supabase/functions-js?branch=main) [![pkg.pr.new](https://pkg.pr.new/badge/supabase/realtime-js)](https://pkg.pr.new/~/supabase/realtime-js)
4+
45

56
JS Client library to interact with Supabase Functions.
67

0 commit comments

Comments
 (0)