Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/npm_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: NPM Release

on:
push:
tags:
- ts-release-*

jobs:
publish-ts:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ts/sdk
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: yarn install --immutable

- name: Build
run: yarn build

- 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

13 changes: 6 additions & 7 deletions ts/sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@fireflyprotocol/bluefin-pro-sdk",
"name": "@bluefin-exchange/pro-sdk",
"version": "0.1.12",
"description": "OpenAPI client for @bluefin/bluefin-pro-sdk",
"description": "OpenAPI client for @bluefin-exchange/pro-sdk",
"author": "Bluefin",
"repository": {
"type": "git",
"url": "https://github.com/fireflyprotocol/bluefin-pro-sdk.git"
"url": "https://github.com/fireflyprotocol/pro-sdk.git"
},
"keywords": [
"@bluefin/bluefin-pro-sdk"
"@fireflyprotocol/pro-sdk"
],
"license": "Unlicense",
"main": "./dist/index.js",
Expand All @@ -34,7 +34,6 @@
".": "./src/index.ts"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
"access": "public"
}
}

}