geometricpanda / storybook-addon-badges

An addon for Storybook which allows the addition of badges to your Stories
https://geometricpanda.github.io/storybook-addon-badges/
MIT License
9 stars 7 forks source link

fix: 🐛 Resolves yarn version mismatch in release workflow #23

Closed JamesIves closed 4 months ago

JamesIves commented 4 months ago

The last release publication failed because of the following:

installing NPM dependencies using Yarn
yarn at "/usr/local/bin/yarn"
/usr/local/bin/yarn --frozen-lockfile
error This project's package.json defines "packageManager": "yarn@4.1.1". However the current global version of Yarn is 1.22.22.

This workflow adjustment ensures that the version of yarn used matches the one highlighted in the packageManager field in package.json.

For this to work:

Everything now runs correctly, although as I am not authorized it stops right before the publish step as you'd expect 😃

npm notice === Tarball Details === 
npm notice name:          @geometricpanda/storybook-addon-badges                           
npm notice version:       2.0.3--canary.44f10a2.0                                          
npm notice filename:      geometricpanda-storybook-addon-badges-2.0.3--canary.44f10a2.0.tgz
npm notice package size:  31.3 kB                                                          
npm notice unpacked size: 187.8 kB                                                         
npm notice total files:   16                                                               
npm notice 
npm ERR! code ENEEDAUTH
npm ERR! need auth This command requires you to be logged in to https://registry.yarnpkg.com
npm ERR! need auth You need to authorize this machine using `npm adduser`