invertase / melos

🌋 A tool for managing Dart projects with multiple packages. With IntelliJ and Vscode IDE support. Supports automated versioning, changelogs & publishing via Conventional Commits.
https://melos.invertase.dev/~melos-latest
Apache License 2.0
1.14k stars 203 forks source link

melos version works differently and in CI for private packages atleast. #603

Closed sahani-deriv closed 11 months ago

sahani-deriv commented 11 months ago

Is there an existing issue for this?

Version

3.2.0

Description

I do not get any error but when I run melos version --all in github actions and in local the output is different.

Here's my melos.yaml:

name: repo name
repository: 'repo url'

packages:
  - packages/*

command:
  version:
    # Generate commit links in package changelogs.
    linkToCommits: true
    workspaceChangelog: true
    updateGitTagRefs: true

  bootstrap:
    # It seems so that running "pub get" in parallel has some issues (like
    # https://github.com/dart-lang/pub/issues/3404). Disabling this feature
    # makes the CI much more stable.
    runPubGetInParallel: false

Steps to reproduce

  1. change any private package and make a commit
  2. run melos version --all
  3. run melos version -all in CI after pushing the changes
  4. the output is different

Expected behavior

melos version --allshould work same locally and in CI

Screenshots

No response

Additional context and comments

No response

sahani-deriv commented 11 months ago

In github actions, you have to checkout with fetch-depth:0