Skip to content

Commit

Permalink
fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
openint-bot committed Jan 9, 2025
1 parent 1d29edc commit e23f6d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/validate-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ jobs:
- name: Publish package
# NPM_TOKEN is not picked up by npm automatically unfortunately so we need to set it up manually
# Wish there is a better api for this though.
if: ${{ github.ref_name == 'main' }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
pnpm publish
pnpm -r publish
# TODO: Add step to publish package here would be nice

Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ Creating a new SDK adapter in `opensdks` follows a standardized process, leverag
6. **Testing Your SDK**:
Test your new SDK by writing a simple script that uses its functions, ensuring everything works as expected.

7. **Publishing**:
Increment version # of the SDK to be published and commit & push, once merged to mail CI will automatically publish the all packages with incremented versions on `main` branch

### Additional Notes

- **OpenAPI Specifications**: Ensure your SDK's OpenAPI spec is accurate and up-to-date.
Expand Down

0 comments on commit e23f6d5

Please sign in to comment.