{"id":48385158,"url":"https://github.com/codbex/action-build-modules","last_synced_at":"2026-04-05T21:31:09.731Z","repository":{"id":287847925,"uuid":"965995199","full_name":"codbex/action-build-modules","owner":"codbex","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-04T20:56:57.000Z","size":1434,"stargazers_count":0,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-04T21:34:39.446Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/codbex.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-14T08:36:15.000Z","updated_at":"2025-07-04T20:57:01.000Z","dependencies_parsed_at":"2025-04-14T09:39:18.226Z","dependency_job_id":"bfb6b3bb-d3dd-42b1-8284-c32181025a35","html_url":"https://github.com/codbex/action-build-modules","commit_stats":null,"previous_names":["codbex/action-build-modules"],"tags_count":3,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/codbex/action-build-modules","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codbex%2Faction-build-modules","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codbex%2Faction-build-modules/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codbex%2Faction-build-modules/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codbex%2Faction-build-modules/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codbex","download_url":"https://codeload.github.com/codbex/action-build-modules/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codbex%2Faction-build-modules/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31451437,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T21:22:52.476Z","status":"ssl_error","status_checked_at":"2026-04-05T21:22:51.943Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-04-05T21:31:00.375Z","updated_at":"2026-04-05T21:31:08.905Z","avatar_url":"https://github.com/codbex.png","language":"TypeScript","readme":"# Create a GitHub Action Using TypeScript\n\n[![GitHub Super-Linter](https://github.com/actions/typescript-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)\n![CI](https://github.com/actions/typescript-action/actions/workflows/ci.yml/badge.svg)\n[![Check dist/](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml/badge.svg)](https://github.com/actions/typescript-action/actions/workflows/check-dist.yml)\n[![CodeQL](https://github.com/actions/typescript-action/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/actions/typescript-action/actions/workflows/codeql-analysis.yml)\n[![Coverage](./badges/coverage.svg)](./badges/coverage.svg)\n\nUse this template to bootstrap the creation of a TypeScript action. :rocket:\n\nThis template includes compilation support, tests, a validation workflow, publishing, and versioning guidance.\n\nIf you are new, there's also a simpler introduction in the\n[Hello world JavaScript action repository](https://github.com/actions/hello-world-javascript-action).\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\n1. Select **Create a new repository**\n1. Select an owner and name for your new repository\n1. Click **Create repository**\n1. Clone your new repository\n\n\u003e [!IMPORTANT]\n\u003e\n\u003e Make sure to remove or update the [`CODEOWNERS`](./CODEOWNERS) file! For details on how to use this file, see\n\u003e [About code owners](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners).\n\n## Initial Setup\n\nAfter you've cloned the repository to your local machine or codespace, you'll need to perform some initial setup steps before you can\ndevelop your action.\n\n\u003e [!NOTE]\n\u003e\n\u003e You'll need to have a reasonably modern version of [Node.js](https://nodejs.org) handy (20.x or later should work!). If you are using a\n\u003e version manager like [`nodenv`](https://github.com/nodenv/nodenv) or [`fnm`](https://github.com/Schniz/fnm), this template has a\n\u003e `.node-version` file at the root of the repository that can be used to automatically switch to the correct version when you `cd` into the\n\u003e repository. Additionally, this `.node-version` file is used by GitHub Actions in any `actions/setup-node` actions.\n\n1. :hammer_and_wrench: Install the dependencies\n\n    ```bash\n    npm install\n    ```\n\n1. :building_construction: Package the TypeScript for distribution\n\n    ```bash\n    npm run bundle\n    ```\n\n1. :white_check_mark: Run the tests\n\n    ```bash\n    $ npm test\n\n    PASS  ./index.test.js\n      ✓ throws invalid number (3ms)\n      ✓ wait 500 ms (504ms)\n      ✓ test runs (95ms)\n\n    ...\n    ```\n\n## Update the Action Metadata\n\nThe [`action.yml`](action.yml) file defines metadata about your action, such as input(s) and output(s). For details about this file, see\n[Metadata syntax for GitHub Actions](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions).\n\nWhen you copy this repository, update `action.yml` with the name, description, inputs, and outputs for your action.\n\n## Update the Action Code\n\nThe [`src/`](./src/) directory is the heart of your action! This contains the source code that will be run when your action is invoked. You\ncan replace the contents of this directory with your own code.\n\nThere are a few things to keep in mind when writing your action code:\n\n- Most GitHub Actions toolkit and CI/CD operations are processed asynchronously. In `main.ts`, you will see that the action is run in an\n  `async` function.\n\n    ```javascript\n    import * as core from '@actions/core';\n    //...\n\n    async function run() {\n        try {\n            //...\n        } catch (error) {\n            core.setFailed(error.message);\n        }\n    }\n    ```\n\n    For more information about the GitHub Actions toolkit, see the\n    [documentation](https://github.com/actions/toolkit/blob/master/README.md).\n\nSo, what are you waiting for? Go ahead and start customizing your action!\n\n1. Create a new branch\n\n    ```bash\n    git checkout -b releases/v1\n    ```\n\n1. Replace the contents of `src/` with your action code\n1. Add tests to `__tests__/` for your source code\n1. Format, test, and build the action\n\n    ```bash\n    npm run all\n    ```\n\n    \u003e This step is important! It will run [`rollup`](https://rollupjs.org/) to build the final JavaScript action code with all dependencies\n    \u003e included. If you do not run this step, your action will not work correctly when it is used in a workflow.\n\n1. (Optional) Test your action locally\n\n    The [`@github/local-action`](https://github.com/github/local-action) utility can be used to test your action locally. It is a simple\n    command-line tool that \"stubs\" (or simulates) the GitHub Actions Toolkit. This way, you can run your TypeScript action locally without\n    having to commit and push your changes to a repository.\n\n    The `local-action` utility can be run in the following ways:\n\n    - Visual Studio Code Debugger\n\n        Make sure to review and, if needed, update [`.vscode/launch.json`](./.vscode/launch.json)\n\n    - Terminal/Command Prompt\n\n        ```bash\n        # npx @github/local action \u003caction-yaml-path\u003e \u003centrypoint\u003e \u003cdotenv-file\u003e\n        npx @github/local-action . src/main.ts .env\n        ```\n\n    You can provide a `.env` file to the `local-action` CLI to set environment variables used by the GitHub Actions Toolkit. For example,\n    setting inputs and event payload data used by your action. For more information, see the example file, [`.env.example`](./.env.example),\n    and the [GitHub Actions Documentation](https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables).\n\n1. Commit your changes\n\n    ```bash\n    git add .\n    git commit -m \"My first action is ready!\"\n    ```\n\n1. Push them to your repository\n\n    ```bash\n    git push -u origin releases/v1\n    ```\n\n1. Create a pull request and get feedback on your action\n1. Merge the pull request into the `main` branch\n\nYour action is now published! :rocket:\n\nFor information about versioning your action, see [Versioning](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md) in\nthe GitHub Actions toolkit.\n\n## Validate the Action\n\nYou can now validate the action by referencing it in a workflow file. For example, [`ci.yml`](./.github/workflows/ci.yml) demonstrates how\nto reference an action in the same repository.\n\n```yaml\nsteps:\n    - name: Checkout\n      id: checkout\n      uses: actions/checkout@v4\n\n    - name: Test Local Action\n      id: test-action\n      uses: ./\n      with:\n          milliseconds: 1000\n```\n\nFor example workflow runs, check out the [Actions tab](https://github.com/actions/typescript-action/actions)! :rocket:\n\n## Usage\n\nAfter testing, you can create version tag(s) that developers can use to reference different stable versions of your action. For more\ninformation, see [Versioning](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md) in the GitHub Actions toolkit.\n\nTo include the action in a workflow in another repository, you can use the `uses` syntax with the `@` symbol to reference a specific branch,\ntag, or commit hash.\n\n```yaml\nsteps:\n    - name: Checkout\n      id: checkout\n      uses: actions/checkout@v4\n\n    - name: Test Local Action\n      id: test-action\n      uses: actions/typescript-action@v1 # Commit with the `v1` tag\n      with:\n          milliseconds: 1000\n```\n\n## Publishing a New Release\n\nThis project includes a helper script, [`script/release`](./script/release) designed to streamline the process of tagging and pushing new\nreleases for GitHub Actions.\n\nGitHub Actions allows users to select a specific version of the action to use, based on release tags. This script simplifies this process by\nperforming the following steps:\n\n1. **Retrieving the latest release tag:** The script starts by fetching the most recent SemVer release tag of the current branch, by looking\n   at the local data available in your repository.\n1. **Prompting for a new release tag:** The user is then prompted to enter a new release tag. To assist with this, the script displays the\n   tag retrieved in the previous step, and validates the format of the inputted tag (vX.X.X). The user is also reminded to update the\n   version field in package.json.\n1. **Tagging the new release:** The script then tags a new release and syncs the separate major tag (e.g. v1, v2) with the new release tag\n   (e.g. v1.0.0, v2.1.2). When the user is creating a new major release, the script auto-detects this and creates a `releases/v#` branch for\n   the previous major version.\n1. **Pushing changes to remote:** Finally, the script pushes the necessary commits, tags and branches to the remote repository. From here,\n   you will need to create a new release in GitHub so users can easily reference the new tags in their workflows.\n\n## Dependency License Management\n\nThis template includes a GitHub Actions workflow, [`licensed.yml`](./.github/workflows/licensed.yml), that uses\n[Licensed](https://github.com/licensee/licensed) to check for dependencies with missing or non-compliant licenses. This workflow is\ninitially disabled. To enable the workflow, follow the below steps.\n\n1. Open [`licensed.yml`](./.github/workflows/licensed.yml)\n1. Uncomment the following lines:\n\n    ```yaml\n    # pull_request:\n    #   branches:\n    #     - main\n    # push:\n    #   branches:\n    #     - main\n    ```\n\n1. Save and commit the changes\n\nOnce complete, this workflow will run any time a pull request is created or changes pushed directly to `main`. If the workflow detects any\ndependencies with missing or non-compliant licenses, it will fail the workflow and provide details on the issue(s) found.\n\n### Updating Licenses\n\nWhenever you install or update dependencies, you can use the Licensed CLI to update the licenses database. To install Licensed, see the\nproject's [Readme](https://github.com/licensee/licensed?tab=readme-ov-file#installation).\n\nTo update the cached licenses, run the following command:\n\n```bash\nlicensed cache\n```\n\nTo check the status of cached licenses, run the following command:\n\n```bash\nlicensed status\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodbex%2Faction-build-modules","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodbex%2Faction-build-modules","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodbex%2Faction-build-modules/lists"}