Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Option to read sentryRelease from package file (e.g. package.json) #39

Open
jmorrice opened this issue Jan 26, 2021 · 3 comments
Open

Comments

@jmorrice
Copy link

I'd like to have the sentry release version determined through the code somehow, with the current options I haven't been able to figure out a way of doing that (hopefully I'm wrong!). Our version numbers are updated in our package.json file, which we consider the single source of truth here.

Currently, I'm using an environment variable for pass it to this plugin, which is hard to keep in sync with the file (in our case package.json). Is there a way of achieving this, or else could that be added?

@scefali
Copy link

scefali commented Jan 26, 2021

@jmorrice Can you just use the Sentry CLI and sentry-cli releases propose-version?

@jmorrice
Copy link
Author

@scefali We'd like to use our "human readable" versions if possible and not the commit ref, since those align with our changelog.

@albertodeago
Copy link

albertodeago commented Feb 11, 2022

Searching for something to do the same.
Basically I want netlify to be able to set the sentryRelease picking the version in the package.json.... Is this not possible?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants