Additional environment variable types for GitHub CI
To use these type definitions, add the package to your devDependencies
:
pnpm install --save-dev @stephansama/github-env
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!