Skip to content

Commit 2eda37d

Browse files
committed
Merge pull request #8 from aurora-is-near/feat/add-npm-publishing
feat: add npm publishing
2 parents d1ad2d3 + 91e26e0 commit 2eda37d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ jobs:
4141
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
- name: Build
4343
run: yarn build
44+
- name: Configure registry for publish
45+
run: |
46+
yarn config set @aurora-is-near:registry https://registry.npmjs.org/
47+
npm config set @aurora-is-near:registry https://registry.npmjs.org/
4448
- name: Release
4549
run: npx semantic-release
4650
env:

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { BYBIT_ADDRESSES } from './bybit-addresses';
22
import { OLD_NEAR_ADDRESSES } from './old-near-addresses';
33

44
/**
5-
* Helper function that checks presence of address in list of banned addresses
5+
* Helper function that checks presence of address in list of banned addresses.
6+
* See bin scripts for methodology.
67
*/
78
export const isBannedNearAddress = (address: string): boolean =>
89
OLD_NEAR_ADDRESSES.has(address) || BYBIT_ADDRESSES.has(address);

0 commit comments

Comments
 (0)