Skip to content

Commit 277cb53

Browse files
committed
ci: update npm before trusted publish
1 parent a7f94aa commit 277cb53

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,20 @@ jobs:
2929
registry-url: "https://registry.npmjs.org"
3030
cache: npm
3131

32+
- name: Update npm for OIDC publishing
33+
run: |
34+
npm install -g npm@latest
35+
npm --version
36+
3237
- name: Install dependencies
3338
run: npm ci
3439

3540
- name: Verify packages
3641
run: npm run check
3742

3843
- name: Publish unpublished workspace packages
44+
env:
45+
NPM_CONFIG_PROVENANCE: "true"
3946
run: |
4047
set -euo pipefail
4148
@@ -68,5 +75,5 @@ jobs:
6875
fi
6976
7077
echo "Publishing ${package}@${version}..."
71-
npm --workspace "$package" publish --access public --provenance
78+
npm --workspace "$package" publish --access public --loglevel verbose
7279
done < /tmp/pi-workspaces.tsv

0 commit comments

Comments
 (0)