Skip to content

Commit

Permalink
fix no top level await (#3843) (#3844)
Browse files Browse the repository at this point in the history
Co-authored-by: etcart <[email protected]>
  • Loading branch information
npauzenga and etcart authored Oct 28, 2024
1 parent c7f7c47 commit 803acf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bamboo/npm-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ async function importGetLatestVersion() {
const { default: getLatestVersion } = await import('latest-version');
return getLatestVersion;
}
const getLatestVersion = await importGetLatestVersion();
const semver = require('semver');

// Given a git tag (process.env.GIT_TAG), this function determines what NPM
Expand All @@ -30,6 +29,7 @@ const semver = require('semver');
// tagged "latest" in NPM then this is a new "latest" release, and "latest" is
// returned.
async function getNpmTag() {
const getLatestVersion = await importGetLatestVersion();
const thisTag = process.env.GIT_TAG;
if (!thisTag) throw new Error('Version is not set');

Expand Down

0 comments on commit 803acf8

Please sign in to comment.