Skip to content

Commit a3583a7

Browse files
committed
npm publish: still not working
1 parent 31b6111 commit a3583a7

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/push_dist_to_npm.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ on:
44
branches:
55
- master
66

7-
permissions:
8-
id-token: write
9-
contents: read
10-
117
jobs:
128
publish:
139
if: github.repository_owner == 'graphhopper'
1410
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
contents: read
1514
steps:
1615
- name: Checkout
1716
uses: actions/checkout@v4
@@ -25,11 +24,11 @@ jobs:
2524
env:
2625
NODE_AUTH_TOKEN: $ACTIONS_ID_TOKEN_REQUEST_TOKEN
2726
run: |
28-
rm -f ~/.npmrc
29-
npm config list
27+
npm install -g npm@latest
3028
npm --version
3129
npm whoami
32-
npm version --git-tag-version=false 0.0.0-$(git rev-parse HEAD)
30+
#npm version --git-tag-version=false 0.0.0-$(git rev-parse HEAD)
31+
npm version --git-tag-version=false 0.0.0-tmp1
3332
# limit distribution to the dist folder (just for this build), and set package name
3433
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));"
3534
npm ci

0 commit comments

Comments
 (0)