Skip to content

Instantly share code, notes, and snippets.

@fhammerschmidt
Last active June 6, 2022 21:07
Show Gist options
  • Save fhammerschmidt/0bbfabd8cd737fb9eb9e65543f3bc64f to your computer and use it in GitHub Desktop.
Save fhammerschmidt/0bbfabd8cd737fb9eb9e65543f3bc64f to your computer and use it in GitHub Desktop.
ReScript-VSCode: Proposal for an automated release process
flowchart TD
A[pull request gets merged into master branch]
A-->B[build analysis binaries]

subgraph ci [ ]
subgraph textNode1 [ci.yml]
style textNode1 fill:none,stroke:none
end
B-->C[fetch current highest version - 1.3.0]
C-->D[store target version for prepublish - 1.4.1]
D-->E[vsce package with bumped minor - 1.4.1]
E-->F[vsce prepublish with bumped minor - 1.4.1]
E-->G[add packaged version to releases page - Latest master]
end

F & G --> H{New release due?}
H -->|No| I[Done]
H -->|Yes| J[Update CHANGELOG.md - 1.3.1]
J --> K[push to protected release branch]
K --> L[build or download analysis binaries]

subgraph release [ ]
subgraph textNode2 [release.yml]
style textNode2 fill:none,stroke:none
end
L --> M[vsce package - 1.3.1]
L --> N[vsce publish - 1.3.1]
M --> O[add packaged version to releases page - 1.3.1]
end

N & O --> I
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment