Bump semver to 7.5.4 (#240)

bc84950 · Paulo F. Oliveira · 2024-01-17 23:32

4 files +18 -18

Files changed

modified .github/workflows/action.yml
+5 −9
@@ -19,22 +19,18 @@ jobs:
19 19 SHA=$(git rev-parse --short HEAD)
20 20 sed -i'.bak' \
21 21 -e "s/const setupBeamVersion = '.*'/const setupBeamVersion = '${SHA}'/g" \
22 dist/index.js
23 # it always starts by being 'undefined'
24 NEWVER=$(grep -oE "const setupBeamVersion = '.*'" dist/index.js | cut -d\' -f2)
25 if [ "$NEWVER" == "undefined" ]; then
26 exit 1
27 else
28 echo "Continuing... new version is ${NEWVER}"
29 fi
22 + src/setup-beam.js
23 + npm run build-dist
30 24 git config user.name "GitHub Actions"
31 25 git config user.email "actions@user.noreply.github.com"
26 + git add src/setup-beam.js
32 27 git add dist/index.js
33 git commit -m "Update setup-beam version output to ${SHA}"
28 + git commit -m "Automation: update setup-beam version output to ${SHA}"
34 29 git push origin main
35 30 check_integrity:
36 31 name: Expected local npm actions
37 32 runs-on: ubuntu-latest
33 + if: github.ref != 'refs/heads/main'
38 34 steps:
39 35 - uses: actions/checkout@v3
40 36 - uses: actions/setup-node@v3
modified dist/index.js
+8 −4
@@ -6161,7 +6161,7 @@ class Range {
6161 6161 this.set = this.raw
6162 6162 .split('||')
6163 6163 // map the range to a 2d array of comparators
6164 .map(r => this.parseRange(r))
6164 + .map(r => this.parseRange(r.trim()))
6165 6165 // throw out any comparator lists that are empty
6166 6166 // this generally means that it was not a valid range, which is allowed
6167 6167 // in loose mode, but will still throw if the WHOLE range is invalid.
@@ -7633,7 +7633,11 @@ module.exports = parseOptions
7633 7633 /***/ 9523:
7634 7634 /***/ ((module, exports, __nccwpck_require__) => {
7635 7635
7636 const { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH } = __nccwpck_require__(2293)
7636 +const {
7637 + MAX_SAFE_COMPONENT_LENGTH,
7638 + MAX_SAFE_BUILD_LENGTH,
7639 + MAX_LENGTH,
7640 +} = __nccwpck_require__(2293)
7637 7641 const debug = __nccwpck_require__(427)
7638 7642 exports = module.exports = {}
7639 7643
@@ -7654,7 +7658,7 @@ const LETTERDASHNUMBER = '[a-zA-Z0-9-]'
7654 7658 // all input should have extra whitespace removed.
7655 7659 const safeRegexReplacements = [
7656 7660 ['\\s', 1],
7657 ['\\d', MAX_SAFE_COMPONENT_LENGTH],
7661 + ['\\d', MAX_LENGTH],
7658 7662 [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
7659 7663 ]
7660 7664
@@ -9870,7 +9874,7 @@ async function main() {
9870 9874 await maybeInstallRebar3(rebar3Spec)
9871 9875
9872 9876 // undefined is replaced by a function, post- main branch merge
9873 const setupBeamVersion = '4678b57'
9877 + const setupBeamVersion = 'undefined'
9874 9878 core.setOutput('setup-beam-version', setupBeamVersion)
9875 9879 }
9876 9880
modified package-lock.json
+4 −4
@@ -11,7 +11,7 @@
11 11 "@actions/exec": "1.1.1",
12 12 "@actions/http-client": "2.1.0",
13 13 "@actions/tool-cache": "2.0.1",
14 "semver": "7.5.3"
14 + "semver": "7.5.4"
15 15 },
16 16 "devDependencies": {
17 17 "@vercel/ncc": "0.36.1",
@@ -2290,9 +2290,9 @@
2290 2290 }
2291 2291 },
2292 2292 "node_modules/semver": {
2293 "version": "7.5.3",
2294 "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz",
2295 "integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==",
2293 + "version": "7.5.4",
2294 + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
2295 + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
2296 2296 "dependencies": {
2297 2297 "lru-cache": "^6.0.0"
2298 2298 },
modified package.json
+1 −1
@@ -18,7 +18,7 @@
18 18 "@actions/exec": "1.1.1",
19 19 "@actions/http-client": "2.1.0",
20 20 "@actions/tool-cache": "2.0.1",
21 "semver": "7.5.3"
21 + "semver": "7.5.4"
22 22 },
23 23 "devDependencies": {
24 24 "@vercel/ncc": "0.36.1",

Parents: 980f47e