{"id":19470346,"url":"https://github.com/kesin11/deno-action-template","last_synced_at":"2026-03-08T11:36:24.921Z","repository":{"id":202759826,"uuid":"706242702","full_name":"Kesin11/deno-action-template","owner":"Kesin11","description":"Template repository TypeScript Action with Deno","archived":false,"fork":false,"pushed_at":"2023-11-27T15:07:21.000Z","size":640,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-16T08:58:51.898Z","etag":null,"topics":["deno","github-actions"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Kesin11.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-17T15:09:06.000Z","updated_at":"2023-12-12T03:56:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"9eb3ea69-bfce-4a4e-8c64-a4936d2c570a","html_url":"https://github.com/Kesin11/deno-action-template","commit_stats":null,"previous_names":["kesin11/deno-action-template"],"tags_count":3,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kesin11%2Fdeno-action-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kesin11%2Fdeno-action-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kesin11%2Fdeno-action-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kesin11%2Fdeno-action-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kesin11","download_url":"https://codeload.github.com/Kesin11/deno-action-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224000799,"owners_count":17239001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","github-actions"],"created_at":"2024-11-10T18:57:33.889Z","updated_at":"2026-03-08T11:36:24.888Z","avatar_url":"https://github.com/Kesin11.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create a JavaScript Action Using Deno\n\n[![CI](https://github.com/Kesin11/deno-action-template/actions/workflows/ci.yml/badge.svg)](https://github.com/Kesin11/deno-action-template/actions/workflows/ci.yml)\n\nTypeScript Action with Deno template inspire by [actions/typescript-action](https://github.com/actions/typescript-action).\n\nThis template includes compilation TypeScript(deno) to JavaScript support, tests, a validation workflow, publishing, and versioning guidance.\n\n## Create Your Own Action\n\nTo create your own action, you can use this repository as a template! Just follow the below instructions:\n\n1. Click the **Use this template** button at the top of the repository\n2. Select **Create a new repository**\n3. Select an owner and name for your new repository\n4. Click **Create repository**\n5. Clone your new repository\n\n## Initial Setup\n\nYou'll need to install [Deno](https://deno.land/) and [Node.js](https://nodejs.org) to develop your action.\n\nAfter `git clone` this repository, you'll need to perform some initial setup steps before you can develop your action.\n\n```bash\n# Setup githooks that check dist/ before git push\ndeno task setup:githooks\n```\n\n## Update the Action Metadata\n\nWhen you copy this repository, update [`action.yml`](./action.yml) with the name, description, author, inputs, and outputs for your action.\n\n## Update the Action Code\n\nThe [`src/`](./src/) directory contains the entrypoint scripts and libraries. `main.ts` and `post.ts` are the entrypoints that will be executed when your action is invoked, others are library code. The [`tests/`](./tests/) directory contains test code.\n\nYou can run tests with `deno test -A` command, or you can run `deno task dev` to run tests automatically when you change codes.\n\nAfter changing `src/` or some dependencies, you need to run `deno task bundle` to bundle your code into `dist/` directory. Since GitHub Actions requires JavaScript, `deno task bundle` will compile deno TypeScript to JavaScript using [dnt](https://github.com/denoland/dnt) and then bundle it with dependencies using [esbuild](https://esbuild.github.io/).\n\nFinally, you need to commit `dist/` directory and push it to GitHub.\n\n## Validate the Action\n\nYou can validate format, lint, test, and bundle with GitHub Actions. See [ci.yml](./.github/workflows/ci.yml) for details.\n\n## Publish the Action\n\nAfter editing codes, you can publish your action to GitHub Releases.\n\nWhen you push to 'main' branch [`release-drafter`](https://github.com/release-drafter/release-drafter) will automatically make the draft release and also the changelog by pull-requests label. You can change pull-requests category in the changelog by editing the pull-request label directly if you want.\n\nWhen it is time to publish new version, you can do it by dispatch relese.yml from GitHub. `release-drafter` will choose the next version by semantic versioning then tag and publish Github Releases.\n\nSee [release.yml](./.github/workflows/release.yml) and [release-drafter.yml](./.github/release-drafter.yml) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkesin11%2Fdeno-action-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkesin11%2Fdeno-action-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkesin11%2Fdeno-action-template/lists"}