From 334045b2f7168f07af5bd302dc9646365160753c Mon Sep 17 00:00:00 2001 From: thecookfrankie <95396011+thecookfrankie@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:01:34 +0800 Subject: [PATCH] chore: publish to npm registry --- .github/workflows/publish.yml | 4 +--- packages/accounts/package.json | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4d0495bb..cb41cc12 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: @@ -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 diff --git a/packages/accounts/package.json b/packages/accounts/package.json index f4ea7dd8..2e509260 100644 --- a/packages/accounts/package.json +++ b/packages/accounts/package.json @@ -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\"}'",