pgserve 1.0.9-rc.4 → 1.0.9-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,10 @@ on:
12
12
  required: false
13
13
  type: string
14
14
  default: 'next'
15
+ ref:
16
+ description: 'Git ref to checkout (tag or commit)'
17
+ required: false
18
+ type: string
15
19
  workflow_dispatch:
16
20
  inputs:
17
21
  version:
@@ -58,6 +62,8 @@ jobs:
58
62
  steps:
59
63
  - name: Checkout
60
64
  uses: actions/checkout@v4
65
+ with:
66
+ ref: ${{ inputs.ref || github.ref }}
61
67
 
62
68
  - name: Setup Bun
63
69
  uses: oven-sh/setup-bun@v2
@@ -93,6 +99,8 @@ jobs:
93
99
  steps:
94
100
  - name: Checkout
95
101
  uses: actions/checkout@v4
102
+ with:
103
+ ref: ${{ inputs.ref || github.ref }}
96
104
 
97
105
  - name: Setup Node.js
98
106
  uses: actions/setup-node@v4
@@ -160,6 +168,15 @@ jobs:
160
168
  - name: Verify publish
161
169
  if: steps.check.outputs.published == 'false'
162
170
  run: |
163
- sleep 5
164
- npm view pgserve@${{ inputs.version }} version
165
- echo "Successfully published pgserve@${{ inputs.version }} with tag @${{ inputs.npm_tag }}"
171
+ # npm registry can take up to 30s to propagate
172
+ for i in 1 2 3 4 5; do
173
+ echo "Attempt $i: Checking npm for pgserve@${{ inputs.version }}..."
174
+ if npm view pgserve@${{ inputs.version }} version 2>/dev/null; then
175
+ echo "Successfully published pgserve@${{ inputs.version }} with tag @${{ inputs.npm_tag }}"
176
+ exit 0
177
+ fi
178
+ echo "Not found yet, waiting 10s..."
179
+ sleep 10
180
+ done
181
+ echo "Warning: Version not found after 50s, but publish command succeeded"
182
+ exit 0
@@ -114,6 +114,7 @@ jobs:
114
114
  with:
115
115
  version: ${{ needs.version.outputs.version }}
116
116
  npm_tag: ${{ needs.version.outputs.npm_tag }}
117
+ ref: ${{ needs.version.outputs.tag }}
117
118
  secrets: inherit
118
119
 
119
120
  # Promote: Just update npm tags (no rebuild)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pgserve",
3
- "version": "1.0.9-rc.4",
3
+ "version": "1.0.9-rc.6",
4
4
  "description": "Embedded PostgreSQL server with true concurrent connections - zero config, auto-provision databases",
5
5
  "main": "src/index.js",
6
6
  "type": "module",