{"id":20156286,"url":"https://github.com/web-infra-dev/actions","last_synced_at":"2025-04-09T22:23:38.907Z","repository":{"id":39891286,"uuid":"424063560","full_name":"web-infra-dev/actions","owner":"web-infra-dev","description":"GitHub actions for releasing.","archived":false,"fork":false,"pushed_at":"2024-12-25T02:09:58.000Z","size":11060,"stargazers_count":8,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"v2","last_synced_at":"2025-03-23T13:02:22.859Z","etag":null,"topics":["actions","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/web-infra-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-11-03T02:15:57.000Z","updated_at":"2024-12-25T02:11:00.000Z","dependencies_parsed_at":"2024-11-13T23:38:28.741Z","dependency_job_id":"60c79b01-5d54-4771-aed4-6bd16356fbac","html_url":"https://github.com/web-infra-dev/actions","commit_stats":{"total_commits":83,"total_committers":6,"mean_commits":"13.833333333333334","dds":"0.12048192771084343","last_synced_commit":"b340585b590db527cd49fa8711f83b499423915e"},"previous_names":["modern-js-dev/actions"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Factions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Factions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Factions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/web-infra-dev%2Factions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/web-infra-dev","download_url":"https://codeload.github.com/web-infra-dev/actions/tar.gz/refs/heads/v2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120944,"owners_count":21051054,"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":["actions","github-actions"],"created_at":"2024-11-13T23:38:16.381Z","updated_at":"2025-04-09T22:23:38.893Z","avatar_url":"https://github.com/web-infra-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Modern.js Actions\n\n## Introduce\n\nThis Action containers two actions for [Modern.js](https://modernjs.dev/):\n\n- Create a pull request with all of the package versions updated and changelogs updated\n\n- Release packages to [NPM](https://www.npmjs.com/) and create Release to repo\n\n## Usage\n\n### Release Pull Request\n\n#### Inputs\n\n- type: action type. Used to distinguish action execution action. Here is 'pull request'\n- version: release type. Support 'latest', 'canary', 'alpha', 'pre'\n- versionNumber: release version. Support like 'v1.x.x' or 'auto'. When you use auto, this action will get the first packages version after running bump version.\n\n#### REPO_SCOPED_TOKEN\n\nThis action need to set REPO_SCOPED_TOKEN. You can read [Creating a personal access token](https://docs.github.com/cn/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) to create presonal access token.\n\n#### Outputs\n\nCreate Release Request for repository.\n\n#### Example\n\n```\nname: Release Pull Request\n\non:\n  workflow_dispatch:\n    inputs:\n      version:\n        type: choice\n        description: 'Release Type(canary, alpha, pre, latest)'\n        required: true\n        default: 'latest'\n        options:\n        - canary\n        - alpha\n        - pre\n        - latest\n\njobs:\n  release:\n    name: Create Release Pull Request\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repo\n        uses: actions/checkout@master\n        with:\n        # This makes Actions fetch only one branch to release\n          fetch-depth: 100\n\n      - name: Create Release Pull Request\n        uses: web-infra-dev/actions@main\n        with:\n          # this expects you to have a script called release which does a build for your packages and calls changeset publish\n          version: ${{ github.event.inputs.version }}\n          versionNumber: 'auto'\n          type: 'pull request'\n        env:\n          GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }}\n          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n          REPOSITORY: ${{ github.repository }}\n          REF: ${{ github.ref }}\n```\n\n### Release\n\n#### Inputs\n\n- type: action type. Used to distinguish action execution action. Here is 'relesae'\n- version: release type. Support 'latest', 'canary', 'alpha', 'pre'\n- branch: release branch\n\n\n#### REPO_SCOPED_TOKEN\n\nThis action need to set REPO_SCOPED_TOKEN. You can read [Creating a personal access token](https://docs.github.com/cn/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) to create presonal access token.\n\n#### Outputs\n\nRuntime Modern Release to publish packages to NPM\n\n#### Example\n\n```\nname: Release\n\non:\n  workflow_dispatch:\n    inputs:\n      version:\n        type: choice\n        description: 'Release Version(canary, alpha, pre, latest)'\n        required: true\n        default: 'canary'\n        options:\n        - canary\n        - alpha\n        - pre\n        - latest\n      branch:\n        description: 'Release Branch(confirm release branch)'\n        required: true\n        default: 'main'\n\njobs:\n  release:\n    name: Release\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Repo\n        uses: actions/checkout@master\n        with:\n        # This makes Actions fetch only one branch to release\n          fetch-depth: 1\n\n      - name: Release\n        uses: web-infra-dev/actions@main\n        with:\n          # this expects you to have a script called release which does a build for your packages and calls changeset publish\n          version: ${{ github.event.inputs.version }}\n          branch: ${{ github.event.inputs.branch }}\n          type: 'release'\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          NPM_TOKEN: ${{ secrets.NPM_TOKEN }}\n          REPOSITORY: ${{ github.repository }}\n          REF: ${{ github.ref }}\n\n```\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-infra-dev%2Factions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweb-infra-dev%2Factions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweb-infra-dev%2Factions/lists"}