{"id":18044724,"url":"https://github.com/natterstefan/action-next-env","last_synced_at":"2025-06-28T21:32:13.511Z","repository":{"id":56714882,"uuid":"523980522","full_name":"natterstefan/action-next-env","owner":"natterstefan","description":"GitHub Action to read .env.[development|test|production][.local] files in Next.js (but also non Next.js) projects and add variables as secrets to GITHUB_ENV.","archived":false,"fork":false,"pushed_at":"2024-07-26T06:47:41.000Z","size":1125,"stargazers_count":11,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-25T00:29:10.661Z","etag":null,"topics":["dotenv","dotenv-parser","github-action","nextjs"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/next-env","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/natterstefan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":["natterstefan"],"patreon":"natterstefan","custom":["https://www.paypal.me/natterstefan","https://www.buymeacoffee.com/natterstefan"]}},"created_at":"2022-08-12T06:32:45.000Z","updated_at":"2025-02-20T15:53:58.000Z","dependencies_parsed_at":"2024-07-25T10:04:39.257Z","dependency_job_id":"e4afc51a-b6ed-4085-9329-9feda83366cb","html_url":"https://github.com/natterstefan/action-next-env","commit_stats":{"total_commits":24,"total_committers":3,"mean_commits":8.0,"dds":"0.41666666666666663","last_synced_commit":"d1f1eb586ea1442767569fdf558c9bd310b8b9b4"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/natterstefan/action-next-env","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natterstefan%2Faction-next-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natterstefan%2Faction-next-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natterstefan%2Faction-next-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natterstefan%2Faction-next-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/natterstefan","download_url":"https://codeload.github.com/natterstefan/action-next-env/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/natterstefan%2Faction-next-env/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262502316,"owners_count":23321126,"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":["dotenv","dotenv-parser","github-action","nextjs"],"created_at":"2024-10-30T18:10:29.653Z","updated_at":"2025-06-28T21:32:13.483Z","avatar_url":"https://github.com/natterstefan.png","language":"TypeScript","readme":"# action-next-env\n\n\u003e GitHub Action to read .env.[development|test|production][.local] files in\n\u003e Next.js (but also non Next.js) projects and add variables as secrets to\n\u003e GITHUB_ENV.\n\n## Usage\n\n```text\n# .env file\nHELLO=\"WORLD\"\n```\n\n```yaml\n- name: Load .env file\n  uses: natterstefan/action-next-env@v1\n  with:\n    path: custom/path/to/folder/with/env # optional, default: .\n    environment: development\n\n- name: Some other action\n  run: |\n    echo \"HELLO Variable: ${{ env.HELLO }}\"\n```\n\nor when using the action in a monorepo setup (but also applicable in other\ncases):\n\n```yaml\n- name: Load .env file\n  uses: natterstefan/action-next-env@v1\n  with:\n    working-directory: 'packages/app'\n    path: custom/path/to/folder/with/env # optional, default: .\n    environment: development\n\n- name: Some other action\n  run: |\n    echo \"HELLO Variable: ${{ env.HELLO }}\"\n```\n\n## Development\n\n\u003e First, you'll need to have a reasonably modern version of `node` handy. This\n\u003e won't work with versions older than 20, for instance.\n\nInstall the dependencies\n\n```bash\nnpm install\n```\n\nBuild the package for distribution\n\n```bash\n# package the source files\nnpm run package\n# afterward create a release for instance with one of the release GitHub actions\n```\n\nRun the tests\n\n```bash\nnpm test\n```\n\n## LICENSE\n\n[MIT](LICENSE)\n\n## Misc. Ressources\n\n- [@next/env - npm](https://www.npmjs.com/package/@next/env)\n- [dotenv - npm](https://www.npmjs.com/package/dotenv)\n- [dotenv-expand - npm](https://www.npmjs.com/package/dotenv-expand)\n- [example versioning documentation](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md)\n\n## Similar actions\n\n- [xom9ikk/dotenv: GitHub Action to read .env file and add variables to GITHUB_ENV](https://github.com/xom9ikk/dotenv)\n- [falti/dotenv-action: Provide common parameters via .env file](https://github.com/falti/dotenv-action)\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://natterstefan.me/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1043668?v=4?s=100\" width=\"100px;\" alt=\"\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eStefan Natter\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#ideas-natterstefan\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/natterstefan/action-next-env/commits?author=natterstefan\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/natterstefan/action-next-env/commits?author=natterstefan\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","funding_links":["https://github.com/sponsors/natterstefan","https://patreon.com/natterstefan","https://www.paypal.me/natterstefan","https://www.buymeacoffee.com/natterstefan"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatterstefan%2Faction-next-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnatterstefan%2Faction-next-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnatterstefan%2Faction-next-env/lists"}