{"id":20910096,"url":"https://github.com/viperproject/create-nightly-release","last_synced_at":"2025-05-13T07:31:29.221Z","repository":{"id":42666113,"uuid":"302257718","full_name":"viperproject/create-nightly-release","owner":"viperproject","description":"GitHub action to create a new pre-release and delete old pre-releases created by this action","archived":false,"fork":false,"pushed_at":"2025-05-01T06:23:49.000Z","size":2864,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-06T19:13:08.908Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viperproject.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}},"created_at":"2020-10-08T07:00:57.000Z","updated_at":"2025-04-08T09:17:59.000Z","dependencies_parsed_at":"2023-02-08T20:16:21.504Z","dependency_job_id":"3d078288-8609-4c25-94c3-306aa1a10877","html_url":"https://github.com/viperproject/create-nightly-release","commit_stats":{"total_commits":96,"total_committers":3,"mean_commits":32.0,"dds":0.21875,"last_synced_commit":"831bbe3e7e59f937c2a68fa379545601f9034e1e"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":"actions/typescript-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viperproject%2Fcreate-nightly-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viperproject%2Fcreate-nightly-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viperproject%2Fcreate-nightly-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viperproject%2Fcreate-nightly-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viperproject","download_url":"https://codeload.github.com/viperproject/create-nightly-release/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253894787,"owners_count":21980400,"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":[],"created_at":"2024-11-18T14:13:53.817Z","updated_at":"2025-05-13T07:31:29.216Z","avatar_url":"https://github.com/viperproject.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# create-nightly-release\n\n[![Test Status](https://github.com/viperproject/create-nightly-release/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/viperproject/create-nightly-release/actions?query=workflow%3Abuild-test+branch%3Amain)\n[![License: MPL 2.0](https://img.shields.io/badge/License-MPL%202.0-brightgreen.svg)](./LICENSE)\n\nGitHub action to create a new pre-release and delete old pre-releases created by this action.\n\n## Usage\n```\n- name: Create nightly release\n  id: create_release\n  uses: viperproject/create-nightly-release@v1\n  env:\n    # This token is provided by Actions, you do not need to create your own token\n    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n  with:\n    tag_name: ${{ env.TAG_NAME }}\n    release_name: Nightly Release ${{ env.TAG_NAME }}\n    body: Body for the release\n    keep_num: 0\n    keep_tags: false\n```\n\n### Inputs\n- `tag_name`: The name of the tag. (required)\n- `release_name`: The name of the release. For example, 'Release v1.0.1'. (required)\n- `body`: Text describing the release. (optional)\n- `body_path`: Path to a file whose content should be used as release body. (optional)\n- `keep_num`: Number of pre-releases that should be kept in addition to the newly created one. E.g. '0' deletes all previous pre-releases created by this action except the one that was just created. (optional, default: 0)\n- `keep_tags`: Specifies whether tags should be deleted if the corresponding release is deleted. (optional, default: false)\n\n### Outputs\n- `id`: The ID of the created release.\n- `html_url`: The URL users can navigate to in order to view the release.\n- `upload_url`: The URL for uploading assets to the release\n\n## Create a new Release\n1. Checkout this repository and pull remote changes `git pull`\n2. Checkout or create a release branch (replace `v1` with the major version number): \n  - `git checkout releases/v1; git pull origin main` or \n  - `git checkout -b releases/v1`\n3. Run `npm version \u003cnewversion\u003e` to set the version number\n4. Run `rm -rf dist; rm -rf node_modules; npm ci`\n5. Run `npm run package`\n6. Force add the dist folder: `git add -f dist`\n7. Commit: `git commit -m \"\u003ccommit message\u003e`\n8. Push release branch: `git push`\n9. Create a GitHub release with a tag, e.g. `v1.0.0`\n10. Move the major tag (e.g. `v1`) to the latest release:\n```\ngit tag -fa v1 -m \"Update v1 tag\"\ngit push origin v1 --force\n```\n\n[More information](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviperproject%2Fcreate-nightly-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviperproject%2Fcreate-nightly-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviperproject%2Fcreate-nightly-release/lists"}