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

Publish workflow getting 404 error #5

Open
baldeepsingh-pantelwar opened this issue Jan 25, 2024 · 0 comments
Open

Publish workflow getting 404 error #5

baldeepsingh-pantelwar opened this issue Jan 25, 2024 · 0 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@baldeepsingh-pantelwar
Copy link
Collaborator

This whole document is ordered as per occurence of events by time.

1. Context

  1. Commit/Merge on main branch
  2. Runnpm version patch or npm version minor command locally (this updates package.json, and creates another commit)
  3. Push the changes to main branch from local machine
  4. Open GitHub and create a Release and a new tag (eg. v0.3.0 or v0.2.1), and publish it

2. Automation (problematic)

  • Make sure on GitHub you have a variable NODE_AUTH_TOKEN
  • on L17 of release.yml file it should automatically create a .npmrc file
  • Publishing the release will trigger the release.yml github action workflow which will automatically publish to npm registry

3. Output (remote)

This is the output of the publish action triggered on release

image

4. Manual publish (running fine)

  • Make sure that locally you have ~/.npmrc file
    //registry.npmjs.org/:_authToken=<auth-token>
  • Replace with the auth token of the npm package owner
  • Run npm publish command locally to publish the pacakge to npm registry manually

5. Output (local)

This is the output of running npm publish command locally

image
@baldeepsingh-pantelwar baldeepsingh-pantelwar added bug Something isn't working help wanted Extra attention is needed labels Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant