diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index b19aece..71678c1 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -27,8 +27,9 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - registry-url: https://npm.pkg.github.com/ + registry-url: https://registry.npmjs.org + scope: '@afuteam' - run: npm ci - run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} + NODE_AUTH_TOKEN: ${{secrets.AFUTEAM_LINT_PUBLISH_NPM_TOKEN}} diff --git a/.npmrc b/.npmrc index 6d34247..2c16fc6 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,6 @@ +# registry=https://registry.npmjs.org/ +# @eyea:registry=https://npm.pkg.github.com + +//registry.npmjs.org/:_authToken=${AFUTEAM_LINT_PUBLISH_NPM_TOKEN} registry=https://registry.npmjs.org/ -@eyea:registry=https://npm.pkg.github.com \ No newline at end of file +always-auth=true