Lerna always lists all packages ready to publish when running workflow of Github actions

前端 未结 3 925
感情败类
感情败类 2021-02-10 07:18

Lerna does not correctly detect packages change during running workflow of Github actions.

  1. If I make none packages related changes, commit and runlerna up

3条回答
  •  没有蜡笔的小新
    2021-02-10 07:43

    After hours of debugging. I found the answer myself and thanks to @peterevans for the tip

    You have to combine both

    • fetch-depth: 0
    • run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*

    so that all git history and tag are exposed to lerna.

提交回复
热议问题