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

CI actions do not publish packages to npm #716

Closed
obulat opened this issue Jul 14, 2024 · 2 comments · Fixed by #719
Closed

CI actions do not publish packages to npm #716

obulat opened this issue Jul 14, 2024 · 2 comments · Fixed by #719
Labels
type: chore Helpful for the development of this module

Comments

@obulat
Copy link
Contributor

obulat commented Jul 14, 2024

Description

The release main action's last several runs never publish anything with the following message:

Run pnpm publish --recursive --access public --report-summary --no-git-checks
  pnpm publish --recursive --access public --report-summary --no-git-checks
  shell: /usr/bin/bash -e {0}
  env:
    PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
    NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc
    NODE_AUTH_TOKEN: ***
There are no new packages that should be published

The nightly release in ci action fails due to error in authentication:

npm notice total files: 31
npm notice
npm error code ENEEDAUTH
npm error need auth This command requires you to be logged in to https://registry.npmjs.org/
npm error need auth You need to authorize this machine using `npm adduser`

npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2024-07-13T16_44_09_019Z-debug-0.log
Error: Process completed with exit code 1.
@obulat obulat changed the title Release GitHub CI actions are not working CI actions do not publish packages to npm Jul 14, 2024
@tobiasdiez
Copy link
Collaborator

Right, this is not used as pnpm release takes care of this already. Maybe it would make sense to automatically add a github release upon pushing a tag?

@chakAs3 what would make it easier for you to release a new version?

@tobiasdiez tobiasdiez added the type: chore Helpful for the development of this module label Jul 14, 2024
@chakAs3
Copy link
Collaborator

chakAs3 commented Jul 15, 2024

@obulat That old CI script was used during development to quickly publish test versions. Now, we run pnpm release from a local machine to create production releases for better control. The failures are due to incorrect credentials after migrating the repo.

@tobiasdiez I used to include GitHub releases in the initial module release script, which is also present in the storybook-addon package. pnpm changelogen --release --push && pnpm publish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore Helpful for the development of this module
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants