{"id":19946109,"url":"https://github.com/quantco/ui-actions","last_synced_at":"2025-05-03T16:32:51.515Z","repository":{"id":103031570,"uuid":"586912696","full_name":"Quantco/ui-actions","owner":"Quantco","description":"Monorepo for UI related github actions","archived":false,"fork":false,"pushed_at":"2025-01-12T14:44:43.000Z","size":1712,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-04-07T18:42:57.639Z","etag":null,"topics":["ui"],"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/Quantco.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-09T14:24:28.000Z","updated_at":"2025-01-14T11:28:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"4c2dcf49-6274-4211-be6a-b6e892818414","html_url":"https://github.com/Quantco/ui-actions","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantco%2Fui-actions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantco%2Fui-actions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantco%2Fui-actions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quantco%2Fui-actions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quantco","download_url":"https://codeload.github.com/Quantco/ui-actions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252216099,"owners_count":21713099,"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":["ui"],"created_at":"2024-11-13T00:28:20.381Z","updated_at":"2025-05-03T16:32:50.481Z","avatar_url":"https://github.com/Quantco.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Monorepo for UI related actions\n\n![GitHub tag (latest semver)](https://img.shields.io/github/v/tag/Quantco/ui-actions?color=%23000000\u0026label=latest%20version\u0026sort=semver)\n\nThis repo includes the following actions:\n\n- [version-metadata](./version-metadata)\n- [publish](./publish)\n\n\u003e This repo uses [pnpm](https://pnpm.io).\n\n## Example\n\nFor more detailed explanations see the respective readmes.\nNevertheless here's a minimal example of these actions in use.\n\n```yml\n- id: version-metadata\n  uses: Quantco/ui-actions/version-metadata@v1\n  with:\n    file: lib/package.json\n    token: ${{ secrets.GITHUB_TOKEN }}\n\n- name: Determine last published version\n  run: |\n    set +e # disable pipefail, error handling is done manually below\n    # get version or fall back to `0.0.0` if the package doesn't exist (yet)\n    echo \"CI_PUBLISHED_VERSION=$(npm show \u003cYOUR PACKAGE NAME\u003e version || echo \"0.0.0\")\" \u003e\u003e $GITHUB_ENV\n  env:\n    NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n  \n- id: publish\n  uses: Quantco/ui-actions/publish@v1\n  with:\n    increment-type: pre-release\n    relevant-files: '[\".github/**\", \"lib/**\"]'\n    package-json-file-path: lib/package.json\n    latest-registry-version: ${{ env.CI_PUBLISHED_VERSION }}\n    version-metadata-json: ${{ steps.version-metadata.outputs.json }}\n\n- name: publish npm package\n  if: steps.publish.outputs.publish == 'true'\n  run: |\n    echo \"Publishing version ${{ steps.publish.outputs.version }}\"\n    npm version --git-tag-version false --allow-same-version true ${{ steps.publish.outputs.version }}\n    npm publish\n  env:\n    NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\n- name: Create action summary\n  run: |\n    echo \"$SUMMARY\" \u003e\u003e $GITHUB_STEP_SUMMARY\n  env:\n    SUMMARY: ${{ steps.publish.outputs.reason }}\n```\n\n## Development\n\n`ui-actions` uses `ui-actions` itself for creating git tags based on the version in the package.json files (see [`.github/workflows/build.yml`](.github/workflows/build.yml)).\n\nWhenever you want to release a new version you just have to increment the version number in **both** `publish/package.json` and `version-metadata/package.json`.\n\nFor local testing you can use the `test.sh` files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantco%2Fui-actions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquantco%2Fui-actions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquantco%2Fui-actions/lists"}