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
|
-
|
|
164
|
-
|
|
165
|
-
|
|
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
|
package/package.json
CHANGED