Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
feat: new functions added + arguments to class instance
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Nov 9, 2023
1 parent ac8553f commit b5b8c5d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,18 @@ jobs:
uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
# a new release is created:
# if: ${{ steps.release.outputs.releases_created }}
if: ${{ steps.release.outputs.releases_created }}
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: "main"
- name: Yarn install
run: yarn install --immutable --immutable-cache
# for security reasons, use --check-cache if accepting PRs from third-parties.
# if: ${{ steps.release.outputs.releases_created }}
- run: echo "Release ${{ steps.release.outputs['packages/sdk--tag_name'] }} created for sdk."
if: ${{ steps.release.outputs['packages/sdk--release_created'] }}
if: ${{ steps.release.outputs.releases_created }}
- run: echo "Release ${{ steps.release.outputs['libs/sdk--tag_name'] }} created for sdk."
if: ${{ steps.release.outputs['libs/sdk--release_created'] }}
# Conditionally publish packages based on changes in their respective dist directories
- name: Publish NPM package ${{ steps.release.outputs.tag_name }}
run: yarn nx affected -t lint --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
run: yarn nx affected -t publish --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.releases_created }}
Expand Down
10 changes: 7 additions & 3 deletions libs/sdk/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@
}
},
"prepublish": {
"command": "echo",
"dependsOn": ["build", "test", "lint"]
"dependsOn": ["build", "test", "lint"],
"executor": "nx:run-commands",
"options": {
"command": "npm pack --dry-run",
"cwd": "libs/sdk"
}
},
"publish": {
"dependsOn": ["prepublish"],
"executor": "nx:run-commands",
"options": {
"command": "npm pack --dry-run",
"command": "npm publish --access public",
"cwd": "libs/sdk"
}
},
Expand Down
1 change: 1 addition & 0 deletions libs/sdk/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class MoneriumClient {
}
}
}

/**
* Construct the url to the authorization code flow,
* Code Verifier needed for the code challenge is stored in session storage
Expand Down

0 comments on commit b5b8c5d

Please sign in to comment.