-
Notifications
You must be signed in to change notification settings - Fork 7
[BFP-1052] Adds npm publish workflow #5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BFP-1052] Adds npm publish workflow #5
Conversation
1e6742e to
c3ca23a
Compare
alawrenc
left a comment
There was a problem hiding this 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 }} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.

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

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

| environment: "mainnet" | "testnet" | "devnet" = "mainnet", | ||
| private currentAccountAddress: string | null = null, | ||
| basePathConfig: BasePathConfig | null = null, | ||
| basePathConfig: BasePathConfig | null = null |
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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.
Co-authored-by: André Castelo <[email protected]>
ef8a736
Adds npm publish workflow