Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More detail about pre-release, preState is not used #273

Closed
riskers opened this issue Mar 23, 2023 · 1 comment
Closed

More detail about pre-release, preState is not used #273

riskers opened this issue Mar 23, 2023 · 1 comment

Comments

@riskers
Copy link

riskers commented Mar 23, 2023

i found this issue: #69

My pre.json on alpha branch:

{
  "mode": "pre",
  "tag": "alpha",
  "initialVersions": {
    "@riskers12/a": "2.2.0-alpha.4",
    "@riskers12/b": "2.0.2-alpha.4"
  },
  "changesets": [
    "gorgeous-nails-try",
    "shy-ligers-impress"
  ]
}

publishing pre-release(alpha) is worked.

Once alpha merge in main, Github Action occur:

/home/runner/setup-pnpm/node_modules/.bin/pnpm changeset version
🦋  warn ===============================IMPORTANT!===============================
🦋  warn You are in prerelease mode
🦋  warn If you meant to do a normal release you should revert these changes and run `changeset pre exit`
🦋  warn You can then run `changeset version` again to do a normal release
🦋  warn ----------------------------------------------------------------------
🦋  All files have been updated. Review them and commit at your leisure

I try to delete pre.json in Github Action, it is useless.
image

@riskers riskers changed the title More detail about pre-release More detail about pre-release, preState is not used Mar 24, 2023
@riskers
Copy link
Author

riskers commented Mar 24, 2023

readChangesetState returns preState, but it's not be used: https://github.com/changesets/action/blob/main/src/index.ts#L36

@riskers riskers closed this as completed Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant