-
Notifications
You must be signed in to change notification settings - Fork 571
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
E404 Not Found #942
Comments
I was not aware of this syntax However, even despite those configurations, it seems that your package is being published to the default registry - perhaps because you specify it as the However, this is still quite confusing because this package indeed exists in the queried registry. I'm not exactly sure what happens here. A sideways question - are you sure that you actually want to publish this package to the GitHub Packages registry and not to the NPM registry? |
I didn't know that @USERNAME:registry and package.json#publishConfig are for GitHub packages and that was my mistake. I removed them and added the following but it returns the same error:
|
I still don't understand why this error happens to you but one thing I've noticed is that you are outputting all build artifacts into another directory. When doing so you probably should use this: "publishConfig": {
"dir": "./package"
} |
Yes, Sveltekit requires Thanks. I will try it. When i use standard-version, this is what I do:
|
any updates here? I am having the same error |
@0xmaayan this error most likely means that your |
@Andarist thanks! This is my .yaml workflow setup
It creates a PR but then when merging it and trying to publish, it fails. I noticed that it fails for scoped packages (i.e |
Fails for my scoped packages too |
@Andarist hey can you have a look at this? The problem is that changeset publish fails for scoped packages. |
Some solution for this? |
Hope this helps someone. I tried everything above (except for ticking off the 2 factor auth) and the following worked for me:
- name: Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: npm run version
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run publish-packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_READWRITE_TOKEN}} I didn't need a .npmrc file or a script to generate it |
I had the same issue, but only using the action. When locally running the I do have an part of the workflow file:
.npmrc:
Note that there's no |
I have set up a I spent a significant amount of time debugging, as I mistakenly assumed the documentation was using the correct environment variable name. However, the solution was quite simple: I just needed to change the reference for the environment variable as follows:
You can see the change here I would like to suggest updating the following changes to the project docs on the following PR: changesets/action#428 I'd like to give special thanks to @canberksinangil for his repository, which helped me realize what changes were needed to make it work for the npm-publish.yml. Additional context (edited original comment 04/12/2024) I wanted to add some background to this PR to provide better context for the reviewers to assist with the approval. The environment variable is defined by how NodeJS is set up within the GitHub Action Setup-node, which will automatically create a .npmrc file using this as an environment variable. Therefore, the action expects us to use this variable over others, while if you decide to create your own .npmrc, we will be in control. As we can see on here. Hence the documentation was updated to align with the previous steps above to align with the setup-node specifications mitigating potential issues when developer use the code given in the Readme |
For me check actions/setup-node@v4 without registry-url
refer https://github.com/actions/setup-node/tree/v4/?tab=readme-ov-file#usage |
Affected Packages
https://github.com/shinokada/svelte-heros-v2
Problem
This works and I get a PR.
Rebase and Merge
on GitHub Pull request:The GitHub action runs and return the following error:
It says that E404 Not Found - PUT https://registry.npmjs.org/svelte-heros-v2, but it exists.
My release.yml:
I use changeset as followings in scripts, package.json:
What am I doing wrong here?
I appreciate your inputs.
Proposed solution
Additional info
The text was updated successfully, but these errors were encountered: