Skip to content

Commit

Permalink
[CI]Add secret usage in deploy workflow (#510)
Browse files Browse the repository at this point in the history
Minot comment updates.

Relates-To: OLPEDGE-2770

Signed-off-by: Yaroslav Stefinko <[email protected]>

Signed-off-by: Yaroslav Stefinko <[email protected]>
  • Loading branch information
ystefinko authored Sep 2, 2022
1 parent 6f78cc1 commit 05f3359
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ jobs:
run: scripts/linux/psv/build_test_psv.sh && env
- name: Deploy to NPM
run: scripts/publish-packages.sh -${PACKAGE_NAME}
env:
PACKAGE_NAME: ${{ inputs.chooseDeploy }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions scripts/publish-packages.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -e
#
# Copyright (C) 2019-2020 HERE Europe B.V.
# Copyright (C) 2019-2022 HERE Europe B.V.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -18,7 +18,7 @@
# License-Filename: LICENSE

# Simple script that bundles the publishing of packages,
# to be run from Travis
# to be run from GitHub Actions

echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/.npmrc

Expand Down

0 comments on commit 05f3359

Please sign in to comment.