Skip to content

Commit

Permalink
Fix npm publish command (#162)
Browse files Browse the repository at this point in the history
npm publish was assuming `dist/splunk-otel-{version}.tgz` was a git repo
and tried to check it out when publishing which obviously failed.

Change it to a relative path tells npm to look for the file on disk
rather than github.
  • Loading branch information
owais authored Jul 2, 2021
1 parent dc15198 commit 9120685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ release:
- mv splunk-otel-${CI_COMMIT_REF_NAME:1}.tgz dist/
- shasum -a 256 dist/* > dist/checksums.txt
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- npm publish dist/splunk-otel-${CI_COMMIT_REF_NAME:1}.tgz
- npm publish ./dist/splunk-otel-${CI_COMMIT_REF_NAME:1}.tgz
- rm -f ~/.npmrc

0 comments on commit 9120685

Please sign in to comment.