Skip to content

Commit 81812bb

Browse files
committed
chore: make sure we use latest npm
1 parent efe0e2f commit 81812bb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/publish.reusable.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
node-version: lts/*
2727
registry-url: "https://registry.npmjs.org"
2828

29+
# Ensure npm 11.5.1 or later is installed for trusted publishing support
30+
- name: Update npm
31+
run: npm install -g npm@latest
32+
2933
- name: Verify `jq` is installed
3034
run: |
3135
if ! jq --version 2>/dev/null; then
@@ -55,14 +59,14 @@ jobs:
5559
for package in packages/@postgrestools/*; do
5660
npm publish "$package" --tag nightly --access public --provenance
5761
done
58-
62+
5963
- name: Publish npm packages as nightly
6064
if: inputs.is-prerelease == 'true'
6165
run: |
6266
for package in packages/@postgres-language-server/*; do
6367
npm publish "$package" --tag nightly --access public --provenance
6468
done
65-
69+
6670
- name: Publish npm packages as latest (deprecated)
6771
if: inputs.is-prerelease != 'true'
6872
run: |
@@ -77,7 +81,7 @@ jobs:
7781
npm publish "$package" --tag latest --access public --provenance
7882
fi
7983
done
80-
84+
8185
- name: Publish npm packages as latest
8286
if: inputs.is-prerelease != 'true'
8387
run: |
@@ -92,4 +96,4 @@ jobs:
9296
npm publish "$package" --tag latest --access public --provenance
9397
fi
9498
done
95-
99+

0 commit comments

Comments
 (0)