gitlab-ci-env
Advanced tools
Comparing version 9.3.0 to 10.0.0
@@ -79,5 +79,2 @@ declare const _exports: Readonly<{ | ||
image: string; | ||
jwt: string; | ||
jwtV1: string; | ||
jwtV2: string; | ||
manual: string; | ||
@@ -151,3 +148,2 @@ name: string; | ||
source: string; | ||
triggerPayload: string; | ||
triggered: string; | ||
@@ -219,2 +215,6 @@ url: string; | ||
templateRegistryHost: string; | ||
trigger: { | ||
payload: string; | ||
shortToken: string; | ||
}; | ||
}; | ||
@@ -221,0 +221,0 @@ gitlab: { |
10
index.js
@@ -96,5 +96,2 @@ 'use strict'; | ||
image: process.env.CI_JOB_IMAGE, | ||
jwt: process.env.CI_JOB_JWT, | ||
jwtV1: process.env.CI_JOB_JWT_V1, | ||
jwtV2: process.env.CI_JOB_JWT_V2, | ||
manual: process.env.CI_JOB_MANUAL, | ||
@@ -171,3 +168,2 @@ name: process.env.CI_JOB_NAME, | ||
source: process.env.CI_PIPELINE_SOURCE, | ||
triggerPayload: process.env.TRIGGER_PAYLOAD, | ||
triggered: process.env.CI_PIPELINE_TRIGGERED, | ||
@@ -238,3 +234,7 @@ url: process.env.CI_PIPELINE_URL | ||
sharedEnvironment: process.env.CI_SHARED_ENVIRONMENT, | ||
templateRegistryHost: process.env.CI_TEMPLATE_REGISTRY_HOST | ||
templateRegistryHost: process.env.CI_TEMPLATE_REGISTRY_HOST, | ||
trigger: { | ||
payload: process.env.TRIGGER_PAYLOAD, | ||
shortToken: process.env.CI_TRIGGER_SHORT_TOKEN | ||
} | ||
}, | ||
@@ -241,0 +241,0 @@ gitlab: { |
{ | ||
"name": "gitlab-ci-env", | ||
"version": "9.3.0", | ||
"version": "10.0.0", | ||
"description": "Get built-in environment variables exposed by GitLab CI.", | ||
@@ -34,3 +34,3 @@ "exports": "./index.js", | ||
"engines": { | ||
"node": "^18.12.0 || >=20.0.0" | ||
"node": "^18.12.0 || ^20.9.0 || >=22.0.0" | ||
}, | ||
@@ -46,3 +46,3 @@ "files": [ | ||
"devDependencies": { | ||
"@aarongoldenthal/eslint-config-standard": "^27.0.0", | ||
"@aarongoldenthal/eslint-config-standard": "^27.0.1", | ||
"dotenv": "^16.4.5", | ||
@@ -52,6 +52,6 @@ "eslint": "^8.57.0", | ||
"jest-junit": "^16.0.0", | ||
"markdownlint-cli2": "^0.12.1", | ||
"markdownlint-cli2": "^0.13.0", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.4.3" | ||
"typescript": "^5.4.5" | ||
} | ||
} |
@@ -99,5 +99,2 @@ # GitLab CI Env | ||
image: 'CI_JOB_IMAGE', | ||
jwt: 'CI_JOB_JWT', | ||
jwtV1: 'CI_JOB_JWT_V1', | ||
jwtV2: 'CI_JOB_JWT_V2', | ||
manual: 'CI_JOB_MANUAL', | ||
@@ -171,3 +168,2 @@ name: 'CI_JOB_NAME', | ||
source: 'CI_PIPELINE_SOURCE', | ||
triggerPayload: 'TRIGGER_PAYLOAD', | ||
triggered: 'CI_PIPELINE_TRIGGERED', | ||
@@ -238,3 +234,7 @@ url: 'CI_PIPELINE_URL', | ||
sharedEnvironment: 'CI_SHARED_ENVIRONMENT', | ||
templateRegistryHost: `CI_TEMPLATE_REGISTRY_HOST` | ||
templateRegistryHost: `CI_TEMPLATE_REGISTRY_HOST`, | ||
trigger: { | ||
payload: `TRIGGER_PAYLOAD`, | ||
shortToken: `CI_TRIGGER_SHORT_TOKEN` | ||
} | ||
}, | ||
@@ -241,0 +241,0 @@ gitlab: { |
27120