Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/stephansama/packages. open source npm packages created by @stephansama packages.stephansama.info
alfred-workflow javascript javascript-library npm npm-package npm-package-typescript npm-packages turborepo typescript
Something went wrong. Try again.
1.3 kB · 36 lines
Markdown
@stephansama/github-env #
Additional environment variable types for GitHub CI
Installation #
To use these type definitions, add the package to your devDependencies:
pnpm install --save-dev @stephansama/github-env
Usage #
In order to enable the GitHub environment variables into your local scope you can either add the following to your tsconfig.json
{
"compilerOptions": {
"types": ["@stephansama/github-env"]
}
}
or add the following reference to any typescript file
/// <reference types="@stephansama/github-env" />
🎉 Now you have access to GitHub environment variables in your TypeScript files!