Skip to content

Commit

Permalink
CI/CD enginerring
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed Jan 23, 2025
1 parent 4281d0b commit 0ebda98
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/npm-install-script-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
node-version: 20

- name: Set version
run: npm version 6.0.3-dev.24 --no-git-tag-version
run: npm version 6.0.3-dev.25 --no-git-tag-version

- name: Change install command for release
run: node ./scripts/change-install-command.js
Expand Down Expand Up @@ -99,21 +99,21 @@ jobs:
npm -v
- name: Setup config
run: jf npm-config --repo-deploy clients-npm-dev-local --repo-resolve http://registry.npmjs.org/
run: jf npm-config --repo-deploy clients-npm-dev-local

- name: Download Artifacts
uses: ./.github/actions/download-github-artifacts/

- name: Publish NPM package
run: jf npm publish --build-name nodejs-client --build-number 6.0.3-dev.24
run: jf npm publish --build-name nodejs-client --build-number 6.0.3-dev.25

#- name: npm publish
# run: |
# npm publish --registry=https://aerospike.jfrog.io/artifactory/api/npm/clients-npm-dev-local/

- name: npm install
run: |
jf npm install --build-name nodejs-client --build-number 6.0.3-dev.24
jf npm install --build-name nodejs-client --build-number 6.0.3-dev.25
- name: Simple require test
run: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/upload-jfrog-build-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,20 +63,20 @@ jobs:
- name: Download Artifacts from Jfrog
run: jf rt dl "clients-${{ env.PACKAGE_MANAGER }}-dev-local/aerospike/${{ env.NEW_VERSION }}/" "downloaded-artifacts/"
env:
NEW_VERSION: 6.0.3-dev.24
NEW_VERSION: 6.0.3-dev.25
PACKAGE_MANAGER: npm

- name: list Artifacts
run: |
ls downloaded-artifacts/aerospike/6.0.3-dev.24/lib/binding/
ls downloaded-artifacts/aerospike/6.0.3-dev.25/lib/binding/
- name: Move artifacts
run: |
cp -r downloaded-artifacts/aerospike/6.0.3-dev.24/lib/binding/ lib/
cp -r downloaded-artifacts/aerospike/6.0.3-dev.25/lib/binding/ lib/
- name: change verison
run: |
npm version 6.0.3-dev.24 --no-git-tag-version
npm version 6.0.3-dev.25 --no-git-tag-version
- name: Change install command for release
run: node ./scripts/change-install-command.js
Expand All @@ -94,7 +94,7 @@ jobs:
run: |
rm -rf lib/binding
mkdir lib/binding
cp -r downloaded-artifacts/aerospike/6.0.3-dev.24/lib/binding/ lib/
cp -r downloaded-artifacts/aerospike/6.0.3-dev.25/lib/binding/ lib/
- name: npm publish
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/upload-to-jfrog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ jobs:
# https://github.com/jfrog/jfrog-cli/issues/1775#issuecomment-1348986551
run: jf rt upload --build-name nodejs-client --build-number ${{ env.NEW_VERSION }}/ "./lib/binding/*" clients-${{ env.PACKAGE_MANAGER }}-dev-local/aerospike/${{ env.NEW_VERSION }}/
env:
NEW_VERSION: 6.0.3-dev.24
NEW_VERSION: 6.0.3-dev.25
PACKAGE_MANAGER: npm

- name: Publish build info
if: ${{ inputs.jfrog-repo-name == vars.JFROG_REPO_NAME }}
run: jf rt build-publish nodejs-client 6.0.3-dev.24
run: jf rt build-publish nodejs-client 6.0.3-dev.25

0 comments on commit 0ebda98

Please sign in to comment.