roku-debug 0.21.32 → 0.21.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,157 +0,0 @@
1
- # Release Workflow System
2
-
3
- This repository holds reusable and template workflows for the new release system.
4
-
5
- ## Table of Contents
6
-
7
- - [Overview](#overview)
8
- - [Workflow Templates](#workflow-templates)
9
- - [Shared CI](#shared-ci)
10
- - [Step 1: Initialize Release](#step-1-initialize-release)
11
- - [Step 2: Create Release Artifacts](#step-2-create-release-artifacts)
12
- - [Step 3: Publish Release](#step-3-publish-release)
13
- - [Repository Setup](#repository-setup)
14
- - [Setting Up Template Workflows in a Repository](#setting-up-template-workflows-in-a-repository)
15
- - [Recovering from a Failed Release CI](#recovering-from-a-failed-release-ci)
16
- - [Command Line](#command-line)
17
-
18
- ---
19
-
20
- ## Overview
21
-
22
- The CI flow consists of three key steps: **[Initialize Release](#step-1-initialize-release), [Create Release Artifacts](#step-2-create-release-artifacts), and [Publish Release](#step-3-publish-release)**. These workflows ensure a structured process for versioning, creating artifacts, and publishing new releases.
23
-
24
- ---
25
-
26
- ## Workflow Templates
27
-
28
- Each workflow step has an associated **template** to set up workflow triggers and call the reusable workflows from the Shared CI.
29
-
30
- ### Template Purposes:
31
-
32
- - Hook into repository workflow triggers.
33
- - Call reusable workflows in the Shared CI.
34
- - Standardize workflow execution across repositories.
35
-
36
- ---
37
-
38
- ## Shared CI
39
-
40
- ### Step 1: Initialize Release
41
-
42
- - **Purpose**: Prepares a new release by incrementing the version and creating a release branch.
43
- - **Triggers**: Manual dispatch with required parameters.
44
- - **Actions**:
45
- 1. Increment the version number.
46
- 2. Create and checkout a new branch (`release/version`).
47
- 3. Commit the updated version number.
48
- 4. Update and commit the changelog.
49
- 5. Open a draft GitHub release.
50
- 6. Create a pull request for review. _Note, this new pull request will trigger the next step._
51
- - **Required Parameters**:
52
- - `branch` (target branch for the release)
53
- - `release_type` (e.g., major, minor, patch)
54
- - [Initialize Release Template](https://github.com/rokucommunity/.github/blob/master/workflow-templates/initialize-release.yml)
55
-
56
- ### Step 2: Create Release Artifacts
57
-
58
- - **Purpose**: Creates the release artifacts, and upload them.
59
- - **Triggers**: Pushes and updates to `release/*` branches.
60
- - **Actions**:
61
- 1. Build the release artifacts.
62
- 2. Upload artifacts to the draft GitHub release.
63
- - **Required Parameters** _(these are hardcoded in the template)_:
64
- - `branch` (The head ref for the release PR)
65
- - `node-version` (The node version used to build the artifacts)
66
- - `asset-paths` (The glob path used to get all the release artifacts)
67
- - [Create Release Artifacts Release Template](https://github.com/rokucommunity/.github/blob/master/workflow-templates/create-release-artifacts.yml)
68
- ### Step 3: Publish Release
69
-
70
-
71
- - **Purpose**: Finalizes the release by marking it as non-draft and publishing the code.
72
- - **Triggers**: Merging of a `release/*` branch.
73
- - **Actions**:
74
- 1. Mark the GitHub release as non-draft.
75
- 2. Publish the release to users (e.g., npm, VS Code Marketplace).
76
- - [Publish Release Template](https://github.com/rokucommunity/.github/blob/master/workflow-templates/publish-release.yml)
77
- - **Required Parameters** _(these are hardcoded in the template)_:
78
- - `branch` (The head ref for the release PR)
79
- - `release-store` (The head ref for the release PR)
80
-
81
- ---
82
-
83
- ## Repository Setup
84
-
85
- To integrate this release workflow system into a new repository, follow these steps:
86
-
87
- 1. **Add Workflow Templates**: Each repository must include the workflow templates: `initialize-release`, `create-release-artifacts`, `publish-release` from this repository. More details in this section: [Setting Up Template Workflows in a Repository](#setting-up-template-workflows-in-a-repository)
88
-
89
- [_Example repository workflow setup_](https://github.com/rokucommunity/release-testing/tree/master/.github/workflows)
90
-
91
- 2. **Ensure Required NPM Script Exist**:
92
- - `package`: Compiles the application.
93
-
94
- _Example `package.json`_
95
- ```json
96
- "scripts": {
97
- "package": "echo \"Place holder for build command\" && mkdir out && echo \"Hello World!\" > hello.txt"
98
- },
99
- ```
100
- 3. **Build Artifacts Paths**:
101
- - The `package` script name and place all artifacts in a way that the `asset_paths` set in [Create Release Artifacts Release Template](https://github.com/rokucommunity/.github/blob/master/workflow-templates/create-release-artifacts.yml) is selectable.
102
- - The post-build step will look for release artifacts in this directory to upload to the GitHub release.
103
-
104
- ---
105
- ### Setting Up Template Workflows in a Repository
106
-
107
- To integrate the release workflow system into a repository, follow these steps to add the required workflow templates from the **RokuCommunity** organization:
108
-
109
- ### Step 1: Add Workflow Templates
110
- 1. Navigate to your repository on GitHub.
111
- 2. Click on the **Actions** tab.
112
- 3. Click **New workflow** or go directly to `.github/workflows`.
113
- 4. Under **"Choose a workflow"**, find the **By RokuCommunity** templates:
114
- - **Initialize Release**
115
- - **Create Release Artifacts**
116
- - **Publish Release**
117
- 5. Click on each template and select **"Configure"**.
118
-
119
- ### Step 2: Check needed edits
120
- 1. Edit `asset_paths` if needed
121
- 2. Edit `node-version` if needed
122
- 2. Edit `publish-store` if needed
123
-
124
- ### Step 3: Commit the Workflow Files
125
- 1. Click **Commit changes...**.
126
- 2. Ensure the commit is made to the default branch (master)
127
- 5. Click **Commit changes**
128
-
129
- Once these workflows are set up, your repository will automatically follow the structured release process!
130
-
131
- ---
132
- ## Recovering from a Failed Release CI
133
-
134
- If the release CI fails and does not recover automatically, follow these steps to reset the release process:
135
-
136
- 1. **Delete the GitHub Release**
137
- - Go to the **Releases** section of your repository.
138
- - Find the failed release.
139
- - Click **Delete release**.
140
-
141
- 2. **Delete the Pull Request for the Release**
142
- - Navigate to the **Pull Requests** tab.
143
- - Locate the pull request associated with the release.
144
- - Close and delete the pull request.
145
-
146
- 3. **Delete the Release Branch**
147
- - Go to the **Branches** section of your repository.
148
- - Find the branch created for the release (e.g., `release/version`).
149
- - Delete the branch.
150
-
151
- _Note there is a [workflow template: Delete Release](https://github.com/rokucommunity/.github/blob/master/workflow-templates/delete-release.yml) that does all three steps_
152
-
153
- ---
154
- ## Command Line
155
-
156
- How would the command line work in each repository? The repos won't have the Reusable CI scripts.
157
-