nuxt-modules / storybook

Storybook integration with Nuxt.
https://storybook.nuxtjs.org
395 stars 89 forks source link

CI actions do not publish packages to npm #716

Closed obulat closed 1 month ago

obulat commented 1 month ago

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.
tobiasdiez commented 1 month ago

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?

chakAs3 commented 1 month ago

@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