From bc849503938be3ec2676e579c3638d14e79d9b9e Mon Sep 17 00:00:00 2001 From: "Paulo F. Oliveira" Date: Wed, 17 Jan 2024 23:32:48 +0000 Subject: [PATCH] Bump semver to 7.5.4 (#240) --- .github/workflows/action.yml | 14 +++++--------- dist/index.js | 12 ++++++++---- package-lock.json | 8 ++++---- package.json | 2 +- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 2b173d14..3ad661e7 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -19,22 +19,18 @@ jobs: SHA=$(git rev-parse --short HEAD) sed -i'.bak' \ -e "s/const setupBeamVersion = '.*'/const setupBeamVersion = '${SHA}'/g" \ - dist/index.js - # it always starts by being 'undefined' - NEWVER=$(grep -oE "const setupBeamVersion = '.*'" dist/index.js | cut -d\' -f2) - if [ "$NEWVER" == "undefined" ]; then - exit 1 - else - echo "Continuing... new version is ${NEWVER}" - fi + src/setup-beam.js + npm run build-dist git config user.name "GitHub Actions" git config user.email "actions@user.noreply.github.com" + git add src/setup-beam.js git add dist/index.js - git commit -m "Update setup-beam version output to ${SHA}" + git commit -m "Automation: update setup-beam version output to ${SHA}" git push origin main check_integrity: name: Expected local npm actions runs-on: ubuntu-latest + if: github.ref != 'refs/heads/main' steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 diff --git a/dist/index.js b/dist/index.js index a87af70b..9edb829d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6161,7 +6161,7 @@ class Range { this.set = this.raw .split('||') // map the range to a 2d array of comparators - .map(r => this.parseRange(r)) + .map(r => this.parseRange(r.trim())) // throw out any comparator lists that are empty // this generally means that it was not a valid range, which is allowed // in loose mode, but will still throw if the WHOLE range is invalid. @@ -7633,7 +7633,11 @@ module.exports = parseOptions /***/ 9523: /***/ ((module, exports, __nccwpck_require__) => { -const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = __nccwpck_require__(2293) +const { + MAX_SAFE_COMPONENT_LENGTH, + MAX_SAFE_BUILD_LENGTH, + MAX_LENGTH, +} = __nccwpck_require__(2293) const debug = __nccwpck_require__(427) exports = module.exports = {} @@ -7654,7 +7658,7 @@ const LETTERDASHNUMBER = '[a-zA-Z0-9-]' // all input should have extra whitespace removed. const safeRegexReplacements = [ ['\\s', 1], - ['\\d', MAX_SAFE_COMPONENT_LENGTH], + ['\\d', MAX_LENGTH], [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], ] @@ -9870,7 +9874,7 @@ async function main() { await maybeInstallRebar3(rebar3Spec) // undefined is replaced by a function, post- main branch merge - const setupBeamVersion = '4678b57' + const setupBeamVersion = 'undefined' core.setOutput('setup-beam-version', setupBeamVersion) } diff --git a/package-lock.json b/package-lock.json index b4041abc..fcda1c1d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@actions/exec": "1.1.1", "@actions/http-client": "2.1.0", "@actions/tool-cache": "2.0.1", - "semver": "7.5.3" + "semver": "7.5.4" }, "devDependencies": { "@vercel/ncc": "0.36.1", @@ -2290,9 +2290,9 @@ } }, "node_modules/semver": { - "version": "7.5.3", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", - "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, diff --git a/package.json b/package.json index af67e2a6..42dbf8e1 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@actions/exec": "1.1.1", "@actions/http-client": "2.1.0", "@actions/tool-cache": "2.0.1", - "semver": "7.5.3" + "semver": "7.5.4" }, "devDependencies": { "@vercel/ncc": "0.36.1",