diff --git a/.github/workflows/debug.yml b/.github/workflows/debug.yml index d15801d..23374e2 100644 --- a/.github/workflows/debug.yml +++ b/.github/workflows/debug.yml @@ -15,4 +15,4 @@ jobs: # a new release is created: - run: yarn install --immutable --immutable-cache # for security reasons, use --check-cache if accepting PRs from third-parties. - - run: yarn nx affected -t lint + - run: yarn nx affected -t lint --base=origin/main --head=origin/HEAD diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93111c4..79a2049 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,10 +11,6 @@ jobs: release-please: name: "Create release" runs-on: ubuntu-latest - outputs: - releases_created: ${{ steps.release.outputs.releases_created }} - tag_name: ${{ steps.release.outputs.tag_name }} - package_names: ${{ steps.get-package-names.outputs.package_names }} steps: - uses: google-github-actions/release-please-action@v3 id: release @@ -33,26 +29,18 @@ jobs: # for security reasons, use --check-cache if accepting PRs from third-parties. if: ${{ steps.release.outputs.releases_created }} # Conditionally publish packages based on changes in their respective dist directories - - name: Publish sdk-react-provider Package - if: ${{ steps.release.outputs.releases_created && contains(steps.release.outputs.release_created, 'sdk-react-provider') }} - run: | - cd dist/sdk-react-provider - npm pack --dry-run + - name: Publish NPM package ${{ steps.release.outputs.tag_name }} + run: yarn nx affected -t lint --base=origin/main --head=origin/HEAD env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Publish sdk Package - if: ${{ steps.release.outputs.releases_created && contains(steps.release.outputs.release_created, 'sdk') }} - run: | - cd dist/sdk - npm pack --dry-run - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Debug run: | - echo '${{ needs.release-please.outputs.releases_created || false }}' - echo '${{ steps.release.outputs.release_created }}' - echo '${{ steps.release.outputs.releases_created }}' + echo '${{ steps.release.outputs.release_created || false}}' + echo '${{ steps.release.outputs.releases_created || false }}' + outputs: + releases_created: ${{ steps.release.outputs.releases_created }} + tag_name: ${{ steps.release.outputs.tag_name }} + package_names: ${{ steps.get-package-names.outputs.package_names }} echo: needs: [release-please] diff --git a/libs/sdk/src/config.ts b/libs/sdk/src/config.ts index 09f654b..6c7f5ee 100644 --- a/libs/sdk/src/config.ts +++ b/libs/sdk/src/config.ts @@ -15,6 +15,4 @@ const MONERIUM_CONFIG: Config = { }, }; -//jkj - export { MONERIUM_CONFIG };