-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
Derived from https://github.com/marketplace/actions/get-latest-release | ||
|
||
|
||
## Updating the code | ||
|
||
### Setup | ||
|
||
1. Install `vercel/ncc` by running this command in your terminal: `npm i -g @vercel/ncc` | ||
2. Install modules. I think this means running: | ||
``` | ||
npm install @actions/core | ||
npm install @actions/github | ||
npm install @octokit/rest | ||
``` | ||
### Updates | ||
After you change `main.js`, you need to run `ncc build main.js --license licenses.txt`, | ||
which will update `dist/index.js`. | ||
## References | ||
- [GitHub REST APIs](https://docs.github.com/en/rest/releases/releases) | ||
- [GitHub REST API Guide](https://docs.github.com/en/rest/guides/scripting-with-the-rest-api-and-javascript?apiVersion=2022-11-28) | ||
- [Octokit docs](https://octokit.github.io/rest.js/v21/) | ||
- [Creating a JavaScript action](https://docs.github.com/en/actions/sharing-automations/creating-actions/creating-a-javascript-action) | ||
- [Another examples of getting releases](https://github.com/InsonusK/get-latest-release) | ||
- [Writing GitHub workflows](https://docs.github.com/en/actions/writing-workflows/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters