@pbvision/cloud-run-service 0.0.46 → 0.0.47
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.
|
@@ -2,17 +2,23 @@ name: Publish to PUBLIC NPM Package Registry
|
|
|
2
2
|
on:
|
|
3
3
|
push:
|
|
4
4
|
branches: [main]
|
|
5
|
+
permissions:
|
|
6
|
+
contents: read
|
|
7
|
+
id-token: write
|
|
5
8
|
jobs:
|
|
6
9
|
publish:
|
|
7
10
|
if: github.repository == 'pbv-public/cloud-run-service'
|
|
8
11
|
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
id-token: write
|
|
9
15
|
steps:
|
|
10
16
|
- uses: actions/checkout@v4
|
|
11
17
|
with:
|
|
12
18
|
fetch-depth: 0
|
|
13
19
|
- uses: actions/setup-node@v4
|
|
14
20
|
with:
|
|
15
|
-
node-version: '
|
|
21
|
+
node-version: '24.x'
|
|
16
22
|
registry-url: 'https://registry.npmjs.org'
|
|
17
23
|
scope: '@pbvision'
|
|
18
24
|
- name: Publish
|
|
@@ -22,15 +28,19 @@ jobs:
|
|
|
22
28
|
echo from ${before} to ${after}
|
|
23
29
|
zero='0000000000000000000000000000000000000000'
|
|
24
30
|
if [ "$before" = "$zero" ]; then
|
|
25
|
-
changed=1
|
|
31
|
+
changed=1
|
|
26
32
|
else
|
|
27
33
|
git diff ${before} ${after} -- package.json | fgrep '"version": "' && changed=1 || changed=0
|
|
28
34
|
fi
|
|
29
35
|
if [ "$changed" = "1" ]; then
|
|
30
|
-
|
|
36
|
+
pkg=$(node -p "require('./package.json').name")
|
|
37
|
+
ver=$(node -p "require('./package.json').version")
|
|
38
|
+
if curl -fsS "https://registry.npmjs.org/${pkg}/${ver}" >/dev/null 2>&1; then
|
|
39
|
+
echo "${pkg}@${ver} already on npmjs, skipping publish"
|
|
40
|
+
else
|
|
41
|
+
npm publish --access public
|
|
42
|
+
fi
|
|
31
43
|
else
|
|
32
44
|
echo 'version was not changed; nothing to publish'
|
|
33
45
|
fi
|
|
34
46
|
shell: bash
|
|
35
|
-
env:
|
|
36
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/Dockerfile
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pbvision/cloud-run-service",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"description": "fastify-firestore-service Web Framework on Cloud Run",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=24"
|
|
9
9
|
},
|
|
10
10
|
"exports": "./src/index.js",
|
|
11
11
|
"scripts": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@google-cloud/tasks": "^4.0.1",
|
|
31
|
-
"@pbvision/fastify-firestore-service": "^0.0.
|
|
31
|
+
"@pbvision/fastify-firestore-service": "^0.0.51",
|
|
32
32
|
"google-auth-library": "^9.4.2",
|
|
33
33
|
"ua-parser-js": "^1.0.37"
|
|
34
34
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"eslint-plugin-n": "^16.6.2",
|
|
46
46
|
"eslint-plugin-node": "^11.1.0",
|
|
47
47
|
"eslint-plugin-promise": "^6.0.0",
|
|
48
|
-
"firebase-tools": "^
|
|
48
|
+
"firebase-tools": "^14.26.0",
|
|
49
49
|
"jest": "^29.7.0",
|
|
50
50
|
"nodemon": "^3.1.0",
|
|
51
51
|
"standard": "^17.1.0",
|