Skip to content

Commit f1a5fbc

Browse files
committed
Merge branch 'master' into issue-13268
2 parents 5fb9a56 + 556dc7b commit f1a5fbc

File tree

6,630 files changed

+323938
-145905
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,630 files changed

+323938
-145905
lines changed

.eslintignore

Lines changed: 0 additions & 14 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 233 deletions
This file was deleted.

.github/actions/git-diff-on-components/README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ This action takes care of all components with dependencies that were modified bu
1515
### `all_files`
1616

1717
**Required** List of all files comming from `changed_files` step in `check_version` job github action workflow. It is necessary to set the action `Ana06/[email protected]` output in json format like
18+
1819
```
1920
...
2021
with:
2122
format: json
2223
```
24+
2325
in that way `steps.changed_files.outputs.all` will be converted in array of strings
2426

2527
## Example usage
@@ -34,8 +36,10 @@ in that way `steps.changed_files.outputs.all` will be converted in array of stri
3436
```
3537
3638
## Build
39+
3740
You need to push all files generated in `dist` folder once you are finished with the build to test the new version of the github action in case you want to make modifications.
41+
3842
```
3943
$ cd .github/actions/git-diff-on-components/
40-
$ npm i && npm run build
41-
```
44+
$ pnpm i && pnpm run build
45+
```

.github/actions/git-diff-on-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "dist/index.js",
66
"scripts": {
77
"clean": "rm -rf ./dist",
8-
"build": "npm run clean && ncc build src/index.js --license licenses.txt"
8+
"build": "pnpm run clean && ncc build src/index.js --license licenses.txt"
99
},
1010
"keywords": [],
1111
"author": "pipedream",
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Push registry app files to Supabase
2+
3+
This action pushes new and modified `*.app.mjs/*.app.ts` files to Supabase.
4+
5+
## Inputs
6+
7+
### `changed_files`
8+
9+
**Required** List of changed files.
10+
11+
### `supabase_anon_key`
12+
13+
**Required** Supabase key
14+
15+
```
16+
...
17+
with:
18+
format: json
19+
```
20+
21+
in that way `steps.changed_files.outputs.all` will be converted into an array of strings
22+
23+
## Example usage
24+
25+
```yaml
26+
- name: Upload modified or newly added *.app.mjs files to Supabase
27+
uses: ./.github/actions/push-registry-app-files-supabase
28+
with:
29+
changed_files: ${{ steps.changed_files.outputs.all }}
30+
supabase_anon_key: ${{ secrets.SUPABASE_ANON_KEY }}
31+
```
32+
33+
## Local Development + Build
34+
35+
Run the following command from this action directory to update `dist/index.js` if `src/index.js` has been modified:
36+
```bash
37+
cd .github/actions/push-registry-app-files-supabase
38+
npm run dev
39+
```
40+
41+
The above command will build and run the dist/index.js. Commit the `dist` directory.
42+
You might want to change the `on` trigger to `push` event on your local branch when making changes to the action so you
43+
can test it on GitHub:
44+
45+
## Master
46+
```yaml
47+
# .github/workflows/push-registry-app-files-supabase.yaml
48+
on:
49+
pull_request:
50+
branches:
51+
- master
52+
paths:
53+
- 'components/**'
54+
```
55+
56+
## During development
57+
```yaml
58+
# .github/workflows/push-registry-app-files-supabase.yaml
59+
on:
60+
push:
61+
branches:
62+
- feature-branch-name
63+
paths:
64+
- 'components/**'
65+
- '.github/actions/push-registry-app-files-supabase/**'
66+
```
67+
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "Push registry app files to Supabase"
2+
description: "Push registry app files that have changed to Supabase. If any *app.ts files have changed, run pnpm build for the affected app to generate the *.app.mjs file."
3+
inputs:
4+
changed_files:
5+
description: "List of all changed files coming from the push_to_supabase job of a github action workflow"
6+
required: true
7+
supabase_anon_key:
8+
description: "Supabase anon key"
9+
required: true
10+
supabase_uri:
11+
description: "Supabase URI"
12+
required: true
13+
runs:
14+
using: "node20"
15+
main: "dist/index.js"

0 commit comments

Comments
 (0)