pnpm / pnpm

Fast, disk space efficient package manager
https://pnpm.io
MIT License
29.59k stars 1.01k forks source link

Publish fails on Github Actions #3136

Closed Sytten closed 3 years ago

Sytten commented 3 years ago

pnpm version: 5.16.0

Code to reproduce the issue:

Try to publish any package when it runs on ubuntu-latest with the default checkout v1 or v2.

Expected behavior:

It publishes successfully.

Actual behavior:

Receive an error:

 ERROR  Command failed with exit code 128: git symbolic-ref --short HEAD
fatal: ref HEAD is not a symbolic ref
at makeError                  ../../../setup-pnpm/dist/pnpm.js:55643   error = new Error(messag…
at handlePromise              ../../../setup-pnpm/dist/pnpm.js:56172   const returnedError = ma…
at processTicksAndRejections  internal/process/task_queues.js:97                                
at getCurrentBranch           ../../../setup-pnpm/dist/pnpm.js:119325  const {stdout} = await e…
at handler [as publish]       ../../../setup-pnpm/dist/pnpm.js:120029  const currentBranch = aw…
at _onTimeout                 ../../../setup-pnpm/dist/pnpm.js:124957  result = await result;   

Additional information:

Sytten commented 3 years ago

Ok you can just use --no-git-checks to bypass the errors