Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faild to publish github package #46

Open
yimingbot opened this issue Nov 15, 2022 · 3 comments
Open

faild to publish github package #46

yimingbot opened this issue Nov 15, 2022 · 3 comments

Comments

@yimingbot
Copy link

publish.yml:

      - name: Publish if version has been updated
        uses: pascalgn/[email protected]
        with:
          tag_name: "v%s"
          tag_message: "v%s"
          create_tag: "true"
          commit_pattern: "^v(\\S+)"
          publish_command: "npm"
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

error log:

npm notice 
npm ERR! code E401
npm ERR! 401 Unauthorized - PUT https://npm.pkg.github.com/xxx - authentication token not provided

if i run npm publish directly, it works. so how can i provide the token ? thx

@rzr
Copy link

rzr commented Dec 16, 2022

have you checked your settings token ?

@yimingbot
Copy link
Author

have you checked your settings token ?

yes, i tried to pass another PAT token with NPM_AUTH_TOKEN env and failed too.

@rzr
Copy link

rzr commented Dec 17, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants