Skip to content

Commit

Permalink
Update .onedev-buildspec.yml to include npm
Browse files Browse the repository at this point in the history
authentication
  • Loading branch information
Codycody31 committed Dec 1, 2023
1 parent 357ecb4 commit 141c8d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .onedev-buildspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ jobs:
image: node:18
interpreter: !DefaultInterpreter
commands:
- export NODE_AUTH_TOKEN=@secret:NODE_AUTH_TOKEN@
- echo _authToken=@secret:NODE_AUTH_TOKEN@ >> .npmrc
- echo email=@secret:NODE_AUTH_EMAIL@ >> .npmrc
- echo always-auth=true >> .npmrc
- npm publish --access public
useTTY: false
condition: ALL_PREVIOUS_STEPS_WERE_SUCCESSFUL
Expand Down

0 comments on commit 141c8d0

Please sign in to comment.