Skip to content

Commit 0981b37

Browse files
committed
chore: setup basic ci release for packages
1 parent e714b78 commit 0981b37

File tree

5 files changed

+109
-79
lines changed

5 files changed

+109
-79
lines changed

.github/workflows/ci.yml

-75
This file was deleted.
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy pg-protocol package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'packages/pg-protocol/**'
9+
workflow_dispatch:
10+
inputs:
11+
version:
12+
description: 'Version to publish (optional)'
13+
required: false
14+
type: string
15+
16+
jobs:
17+
deploy:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '18'
26+
registry-url: 'https://registry.npmjs.org'
27+
28+
- name: Install dependencies
29+
run: yarn install --frozen-lockfile
30+
31+
- name: Build package
32+
run: cd packages/pg-protocol && yarn build
33+
34+
- name: Publish to npm
35+
run: cd packages/pg-protocol && npm publish
36+
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/deploy-pg.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy pg package
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'packages/pg/**'
9+
workflow_dispatch:
10+
inputs:
11+
version:
12+
description: 'Version to publish (optional)'
13+
required: false
14+
type: string
15+
16+
jobs:
17+
deploy:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: '18'
26+
registry-url: 'https://registry.npmjs.org'
27+
28+
- name: Install dependencies
29+
run: yarn install --frozen-lockfile
30+
31+
- name: Build package
32+
run: cd packages/pg && yarn build
33+
34+
- name: Publish to npm
35+
run: cd packages/pg && npm publish
36+
env:
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,6 @@
3636
"arrowParens": "always",
3737
"trailingComma": "es5",
3838
"singleQuote": true
39-
}
39+
},
40+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
4041
}

yarn.lock

+33-3
Original file line numberDiff line numberDiff line change
@@ -5738,6 +5738,11 @@ pg-int8@1.0.1:
57385738
resolved "https://registry.npmjs.org/pg-int8/-/pg-int8-1.0.1.tgz"
57395739
integrity sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw==
57405740

5741+
"pg-protocol@npm:@supabase/pg-protocol@^0.0.1":
5742+
version "0.0.1"
5743+
resolved "https://registry.yarnpkg.com/@supabase/pg-protocol/-/pg-protocol-0.0.1.tgz#ef7bb9f92db4961653f599217cf504149aa0d967"
5744+
integrity sha512-j/P+hc/dxp9djRxxCSxSae+H05mpSVCQyeRWsEXulQWv3u5aTpGV3E8qmNIiTHeQ7t2pQIYp2PIVr2DpRTad0A==
5745+
57415746
pg-types@^2.1.0:
57425747
version "2.2.0"
57435748
resolved "https://registry.npmjs.org/pg-types/-/pg-types-2.2.0.tgz"
@@ -6713,7 +6718,7 @@ stream-spec@~0.3.5:
67136718
dependencies:
67146719
macgyver "~1.10"
67156720

6716-
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0:
6721+
"string-width-cjs@npm:string-width@^4.2.0":
67176722
version "4.2.3"
67186723
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
67196724
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -6748,6 +6753,15 @@ string-width@^3.0.0, string-width@^3.1.0:
67486753
is-fullwidth-code-point "^2.0.0"
67496754
strip-ansi "^5.1.0"
67506755

6756+
string-width@^4.1.0, string-width@^4.2.0:
6757+
version "4.2.3"
6758+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
6759+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
6760+
dependencies:
6761+
emoji-regex "^8.0.0"
6762+
is-fullwidth-code-point "^3.0.0"
6763+
strip-ansi "^6.0.1"
6764+
67516765
string-width@^5.0.1, string-width@^5.1.2:
67526766
version "5.1.2"
67536767
resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794"
@@ -6787,7 +6801,7 @@ string_decoder@~1.1.1:
67876801
dependencies:
67886802
safe-buffer "~5.1.0"
67896803

6790-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
6804+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
67916805
version "6.0.1"
67926806
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
67936807
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -6815,6 +6829,13 @@ strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0:
68156829
dependencies:
68166830
ansi-regex "^4.1.0"
68176831

6832+
strip-ansi@^6.0.0, strip-ansi@^6.0.1:
6833+
version "6.0.1"
6834+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
6835+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
6836+
dependencies:
6837+
ansi-regex "^5.0.1"
6838+
68186839
strip-ansi@^7.0.1:
68196840
version "7.1.0"
68206841
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45"
@@ -7457,7 +7478,7 @@ wrangler@3.58.0:
74577478
optionalDependencies:
74587479
fsevents "~2.3.2"
74597480

7460-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
7481+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
74617482
version "7.0.0"
74627483
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
74637484
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -7475,6 +7496,15 @@ wrap-ansi@^5.1.0:
74757496
string-width "^3.0.0"
74767497
strip-ansi "^5.0.0"
74777498

7499+
wrap-ansi@^7.0.0:
7500+
version "7.0.0"
7501+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
7502+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
7503+
dependencies:
7504+
ansi-styles "^4.0.0"
7505+
string-width "^4.1.0"
7506+
strip-ansi "^6.0.0"
7507+
74787508
wrap-ansi@^8.1.0:
74797509
version "8.1.0"
74807510
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)