Skip to content

Commit 3fac693

Browse files
committed
CCM-13038: use script in pre.sh
1 parent cf817ee commit 3fac693

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

  • infrastructure/terraform/components/api

infrastructure/terraform/components/api/pre.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
# # It ensures all Node.js dependencies are installed, generates any required dependencies,
33
# # and builds all Lambda functions in the workspace before Terraform provisions infrastructure.
44

5-
echo "Running pre.sh"
5+
echo "Running Pre.sh"
66

7-
npm config --location user set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
7+
ROOT_DIR="$(git rev-parse --show-toplevel)"
8+
9+
echo "Running set-github-token.sh"
10+
11+
$ROOT_DIR/scripts/set-github-token.sh
12+
13+
echo "Completed."
814

915
npm ci
1016

0 commit comments

Comments
 (0)