Skip to content

Conversation

@Salakar
Copy link
Member

@Salakar Salakar commented Apr 21, 2020

Description

This GitHub action creates (or updates) the latest release for each extension, triggered only on push to master only.

  • Finds all Extensions (directories containing extension.yaml file)
  • For each Extension:
    • Read current Extension version from yaml file
    • Read changes for the version from the extensions CHANGELOG.md
    • Query GitHub API for firebase/extensions repo and checks if release exists already:
      • EXISTS: update it release body (allows changes made in CHANGELOG.md after a release to be automatically reflected in the relevant release)
      • DOES_NOT_EXIST: create a new GitHub release & tag

Notes:

Testing

Script output:

image

Generated releases:
image

@googlebot googlebot added the cla: yes Author has signed the CLA label Apr 21, 2020
@codecov-io
Copy link

Codecov Report

Merging #272 into next will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             next     #272   +/-   ##
=======================================
  Coverage   40.48%   40.48%           
=======================================
  Files          20       20           
  Lines         625      625           
  Branches       81       81           
=======================================
  Hits          253      253           
  Misses        370      370           
  Partials        2        2           

@Salakar Salakar changed the title chore: initial GitHub release script chore: initial GitHub releases action Apr 21, 2020
Copy link
Member

@russellwheatley russellwheatley left a comment

Choose a reason for hiding this comment

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

LGTM

@Salakar Salakar marked this pull request as ready for review April 21, 2020 17:21
@laurenzlong laurenzlong merged commit c07279f into next Apr 23, 2020
@laurenzlong laurenzlong deleted the @invertase/releases-automation branch April 23, 2020 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes Author has signed the CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants