Skip to content

Commit 4a27148

Browse files
committed
Updates for 2024 Release
1 parent 0274d17 commit 4a27148

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/nodejs-workflow.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/checkout@v4
4141
with:
4242
repository: 'authorizenet/sample-code-node'
43-
ref: 'master'
43+
ref: 'future'
4444
path: ${{env.sample_code_node}}
4545

4646
- name: Install Node
@@ -54,13 +54,9 @@ jobs:
5454
npm install
5555
npm test
5656
57-
# npm pack
58-
# rm -rf ../$local_npm_folder
59-
# mkdir ../$local_npm_folder
60-
# PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | head -n 1)
61-
# tar -xvzf "authorizenet-$PACKAGE_VERSION.tgz" -C ../$local_npm_folder
62-
# cd ../$local_npm_folder/package
63-
# npm link
64-
# cd ../../$sample_code_node
65-
# npm link authorizenet
66-
# npm install
57+
npm pack
58+
PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | head -n 1)
59+
cd ../$sample_code_node
60+
npm install file:../$sdk_node/authorizenet-$PACKAGE_VERSION.tgz
61+
node test-runner.js
62+

0 commit comments

Comments
 (0)