Skip to content

Commit 1091285

Browse files
committed
Add comment for npm env vars
1 parent a64fe77 commit 1091285

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/update-changelog.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { updateChangelog } from '../shared/github-scripts/changelog-release-helper.mjs'
22

3+
// This file is called automatically after `npm version` runs and which exposes these
4+
// environment variables (https://github.com/npm/cli/blob/c97b39b1e3436cd20a67ab5f4012a5f395c538b9/workspaces/libnpmversion/lib/version.js#L100-L103)
35
const { npm_old_version: previousVersion, npm_new_version: newVersion } =
46
process.env
57

0 commit comments

Comments
 (0)