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

Update release script to do signed releases #305

Merged
merged 3 commits into from
Dec 9, 2016
Merged

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Dec 9, 2016

if a signing ID is set in release_config.yaml

Also set the release text to the relevant changelog entry

if a signing ID is set in release_config.yaml

Also set the release text to the relevant changelog entry
@@ -145,21 +153,43 @@ if [ $dodist -eq 0 ]; then
# We haven't tagged yet, so tell the dist script what version
# it's building
DIST_VERSION="$tag" npm run dist

`dirname $0`/scripts/changelog_head.py > latest_changes.md
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks like it won't work because of the pushd "$builddir"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, where is changelog_head.py?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, added changelog_head. And yeah, this should work since it's taking the path the script itself is executed with (which will be node_modules/matrix-js-sdk/ because of https://github.com/vector-im/riot-web/blob/master/release.sh#L12) and executing changelog_head relative to that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

except that at this point you are in the build dir, so node_modules won't be found

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I believe this works now.

@richvdh richvdh assigned dbkr and unassigned richvdh Dec 9, 2016
@dbkr dbkr assigned richvdh and unassigned dbkr Dec 9, 2016
@@ -145,21 +153,43 @@ if [ $dodist -eq 0 ]; then
# We haven't tagged yet, so tell the dist script what version
# it's building
DIST_VERSION="$tag" npm run dist

`dirname $0`/scripts/changelog_head.py > latest_changes.md
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we doing anything here to ensure that the riot-web changelog references or links to the equivalent matrix-react-sdk changelog (and similarly js-sdk changelog)? At the least, we might want to include non-versioned links to the latest_changes for those projects. And slightly better would be links to the right version of latest_changes for the deps...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The release script is common to js-sdk and react-sdk though, and this would all be riot-web specific logic to insert js-sdk and react-sdk changelogs.

@ara4n
Copy link
Member

ara4n commented Dec 9, 2016

lgtm modulo comments, assuming it works :D

so we know the relative path is right
@dbkr dbkr merged commit 95f56f9 into develop Dec 9, 2016
@dbkr dbkr deleted the dbkr/signed_releases branch December 14, 2016 18:10
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

Successfully merging this pull request may close these issues.

3 participants