Skip to content

Commit 05f3359

Browse files
authored
[CI]Add secret usage in deploy workflow (#510)
Minot comment updates. Relates-To: OLPEDGE-2770 Signed-off-by: Yaroslav Stefinko <ext-yaroslav.stefinko@here.com> Signed-off-by: Yaroslav Stefinko <ext-yaroslav.stefinko@here.com>
1 parent 6f78cc1 commit 05f3359

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ jobs:
3636
run: scripts/linux/psv/build_test_psv.sh && env
3737
- name: Deploy to NPM
3838
run: scripts/publish-packages.sh -${PACKAGE_NAME}
39+
env:
40+
PACKAGE_NAME: ${{ inputs.chooseDeploy }}
41+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

scripts/publish-packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash -e
22
#
3-
# Copyright (C) 2019-2020 HERE Europe B.V.
3+
# Copyright (C) 2019-2022 HERE Europe B.V.
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
66
# you may not use this file except in compliance with the License.
@@ -18,7 +18,7 @@
1818
# License-Filename: LICENSE
1919

2020
# Simple script that bundles the publishing of packages,
21-
# to be run from Travis
21+
# to be run from GitHub Actions
2222

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

0 commit comments

Comments
 (0)