Skip to content

Commit

Permalink
chore: publish to npm registry
Browse files Browse the repository at this point in the history
  • Loading branch information
thecookfrankie committed Dec 8, 2023
1 parent 85a111f commit 334045b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
publish:
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -24,8 +24,6 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@b2network'
- name: Install modules
run: yarn install --frozen-lockfile
- name: Build and Publish to GitHub Packages
Expand Down
4 changes: 4 additions & 0 deletions packages/accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:types",
"build:cjs": "tsc --project tsconfig.build-cjs.json && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
Expand Down

0 comments on commit 334045b

Please sign in to comment.