Skip to content

Commit 4a074aa

Browse files
committed
npm publish
1 parent 40f4a4d commit 4a074aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/push_dist_to_npm.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,12 @@ jobs:
2727

2828
run: |
2929
npm version --git-tag-version=false 0.0.0-$(git rev-parse HEAD)
30+
npm whoami
3031
# limit distribution to the dist folder (just for this build), and set package name
3132
node -e "const packageJson=require('./package.json'); packageJson.files=['dist/']; packageJson.name='@graphhopper/graphhopper-maps-bundle'; require('fs').writeFileSync('package.json', JSON.stringify(packageJson, null, 4));"
3233
npm ci
3334
npm run build
3435
# no dependencies or scripts in package.json (they should not be installed when installing the package, because they are all included in the bundle already)
3536
node -e "const packageJson=require('./package.json'); packageJson.scripts={}; packageJson.dependencies={}; packageJson.devDependencies={}; require('fs').writeFileSync('package.json', JSON.stringify(packageJson, null, 4));"
3637
# we need to set the access to public, because organization scoped packages are private by default
37-
npm publish --access public
38+
npm publish --provenance --access public

0 commit comments

Comments
 (0)