toolkit
typescript-action
Our great sponsors
toolkit | typescript-action | |
---|---|---|
20 | 29 | |
4,667 | 1,769 | |
2.4% | 3.4% | |
9.5 | 9.2 | |
5 days ago | 7 days ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
toolkit
- Disable Annotations in Github Actions
-
Develop, test, and deploy your extensions for all popular CIs from a single codebase
Different libraries (like actions/toolkit and microsoft/azure-pipelines-task-lib) with more accessible and easy-to-use APIs are available out-of-box
-
Format repo - GitHub Action to format your code with comfort
I used the libraries from actions/toolkit to create my action. It's more comfortable than when I did it with Docker. I looked at all the libraries, and most of all: actions/core, actions/exec and actions/github.
-
OpenCommit: GitHub Action to improve commits with meaningful messages on every `git push` π€―π«
The Action is built using TypeScript and Node.js, popular choices for GitHub Actions due to their excellent support for asynchronous operations, a crucial requirement considering the multiple I/O operations involved. In the initial setup, I used the actions/toolkit package which provides useful utilities to streamline the creation of GitHub Actions. I picked @actions/core for basic functionalities such as inputs, outputs, and error handling, @actions/github to interact with GitHub's REST API, and @actions/exec to execute shell commands.
-
AdaGPT: My Learnings While Building a GitHub Action
The package @actions/github provides a hydrated Octokit.js client. Octokit.js is the SDK of GitHub and contains several subpackages like @octokit/rest and @octokit/graphql to interact with the REST or GraphQL API.
-
AdaGPT: AI support for Issues and Pull Requests right at your fingertips!
The GitHub Action was implemented with TypeScript using the GitHub Actions Toolkit and the OpenAI Node.js Library. The Action is activated on new comments on issues and pull requests if they mention @AdaGPT. The relevant issue number is determined from the event payload. Then all existing comments for this issue are read. If the issue is a pull request, the git diff is also read.
-
Creating GitHub Actions for community engagement
Creating actions can be an overwhelming task, so to help you on your journey, here are two indispensable resources that can assist you in getting started; Actions Toolkit and Javascript action template. Still, this article will dive into how to create an action.
-
The feature request for a "allow-failure" option on GitHub Actions now almost has one thousand thumbs up
Please support something like "allow-failure" for a given job
-
I'm leaving Github
More than 2 years of ignoring requests to add an important feature (allow-failure) to Github Actions (ref, ref. When not ignoring, completely misunderstanding the feature as if those building Github Actions are unfamiliar with core features of competing platforms.
- Official GitHub Actions Toolkit is abandoned
typescript-action
-
Hashnode Blog GitHub Action - fetch and display the latest blogs in a nice format
While learning about GitHub Actions, I came across the GitHub Actions Org, and they have a bunch of templates for building custom GitHub actions. So, I started searching for a template that has TypeScript support, ensuring type safety to write bug-free code. I found the typescript-action template that includes support for tests, linter, versioning, and more.
-
Dynamically importing a downloaded file in a TypeScript GitHub action.
This is the template I used for my TypeScript action https://github.com/actions/typescript-action
-
Develop, test, and deploy your extensions for all popular CIs from a single codebase
I found the GitHub actions documentation easier to read than Azure, so I would recommend starting writing and testing your extensions on GitHub by using the official template actions/typescript-action. The mentioned template provides a good starting point; I won't repeat the steps here. Play with it, write some simple stuff, and then return here for the next steps.
-
Speeding up GitHub Actions with npm cache
GitHub maintain a set of repos called actions. One of which is called cache.
-
AdaGPT: My Learnings While Building a GitHub Action
To get started quickly with a JavaScript action, I recommend using the official templates from GitHub for JavaScript and TypeScript.
-
Rust is not hard! Part 1: GitHub Actions
On the TypeScript side, setup was much easier. There was already a template from GitHub that took care of the basics. Most of the time spent here was updating dependencies and getting my editor to play nicely with itβ18 minutes, about 10% of the total.
- CICD pipelines written in Typescript
- Unpopular opinion: CI/CD engines are an awful idea
-
Creating GitHub Actions for community engagement
Now that you know how to create your own GitHub Actions, why not give it a try? Head to the GitHub Marketplace and start exploring the existing Actions, or create your own and share it with the community. With GitHub Actions, the possibilities are endless, so start building and see what you can accomplish
-
How to Debug Tests in the CI Pipeline
Your build most likely fails because your tests fail. Most CI pipelines today, like Jenkins, Circleci, GitLab, TeamCity, Bamboo, and GitHub Actions, are configured to automatically cause the build process to fail when tests fail.
What are some alternatives?
act - Run your GitHub Actions locally π
codeql-action - Actions for running CodeQL analysis
fully-featured-scalable-chat-app - An example of how to architect a fully featured, scalable chat app. With user and channel management and message history.
ncc - Compile a Node.js project into a single file. Supports TypeScript, binary addons, dynamic requires.
github-script - Write workflows scripting the GitHub API in JavaScript
get-changed-files - Get all of the files changed/modified in a pull request or push's commits.
azure-pipelines-task-lib - Libraries for writing VSTS and TFS build tasks
sticky-pull-request-comment - create comment on pull request, if exists update that comment.
community - Public feedback discussions for: GitHub Mobile, GitHub Discussions, GitHub Codespaces, GitHub Sponsors, GitHub Issues and more!
publish-unit-test-result-action - GitHub Action to publish unit test results on GitHub
ably-control-api-action - A GitHub Action to use the Ably Control API.
vercel-action - This action make a deployment with github actions instead of Vercel builder.