Skip to content

Conversation

@shahzaib-sheikh
Copy link
Contributor

Adds npm publish workflow

@shahzaib-sheikh shahzaib-sheikh force-pushed the shahzaib/bfp-1052-publish-pro-sdk-package-to-npm branch from 1e6742e to c3ca23a Compare February 19, 2025 20:46
@shahzaib-sheikh shahzaib-sheikh marked this pull request as ready for review February 19, 2025 20:48
@shahzaib-sheikh shahzaib-sheikh requested a review from a team February 19, 2025 20:48
Copy link
Contributor

@alawrenc alawrenc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should probably manually assign Andre or Pedro, since I'm not familiar with the nuance of this setup

- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Triple-checking since this is now a public repo: this won't expose the secret via github action logs or any other way?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This secret is not printed in action logs. as seen here.
image

The public contributions would require approval from maintainers before it runs gh-actions. e.g. fireflyprotocol/bluefin-v2-client-ts#154
image

Forks won't have access to this, as mentioned here,
https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#using-secrets-in-a-workflow
image

environment: "mainnet" | "testnet" | "devnet" = "mainnet",
private currentAccountAddress: string | null = null,
basePathConfig: BasePathConfig | null = null,
basePathConfig: BasePathConfig | null = null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The eternal battle of formatters continues!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make formatting checks as part of PR checks to fix this.

alawrenc
alawrenc previously approved these changes Feb 20, 2025
andrecastelo
andrecastelo previously approved these changes Feb 20, 2025
Co-authored-by: André Castelo <[email protected]>
@alawrenc alawrenc merged commit e160409 into main Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants