diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3b1ca84..95fcd20 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -65,8 +65,14 @@ jobs: path: dist/ - name: Publish to NPM continue-on-error: true + run: npm publish --access public env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - npm publish --access public \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - uses: actions/setup-node@v3 + with: + registry-url: "https://npm.pkg.github.com" + - name: Publish to Github Package Repository + continue-on-error: true + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ github.token }} \ No newline at end of file