Bump semver to 7.5.4 (#240)

This commit is contained in:
Paulo F. Oliveira
2024-01-17 23:32:48 +00:00
committed by GitHub
parent 980f47ea52
commit bc84950393
4 changed files with 18 additions and 18 deletions
+5 -9
View File
@@ -19,22 +19,18 @@ jobs:
SHA=$(git rev-parse --short HEAD) SHA=$(git rev-parse --short HEAD)
sed -i'.bak' \ sed -i'.bak' \
-e "s/const setupBeamVersion = '.*'/const setupBeamVersion = '${SHA}'/g" \ -e "s/const setupBeamVersion = '.*'/const setupBeamVersion = '${SHA}'/g" \
dist/index.js src/setup-beam.js
# it always starts by being 'undefined' npm run build-dist
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
git config user.name "GitHub Actions" git config user.name "GitHub Actions"
git config user.email "actions@user.noreply.github.com" git config user.email "actions@user.noreply.github.com"
git add src/setup-beam.js
git add dist/index.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 git push origin main
check_integrity: check_integrity:
name: Expected local npm actions name: Expected local npm actions
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.ref != 'refs/heads/main'
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
+8 -4
View File
@@ -6161,7 +6161,7 @@ class Range {
this.set = this.raw this.set = this.raw
.split('||') .split('||')
// map the range to a 2d array of comparators // 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 // throw out any comparator lists that are empty
// this generally means that it was not a valid range, which is allowed // 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. // in loose mode, but will still throw if the WHOLE range is invalid.
@@ -7633,7 +7633,11 @@ module.exports = parseOptions
/***/ 9523: /***/ 9523:
/***/ ((module, exports, __nccwpck_require__) => { /***/ ((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) const debug = __nccwpck_require__(427)
exports = module.exports = {} exports = module.exports = {}
@@ -7654,7 +7658,7 @@ const LETTERDASHNUMBER = '[a-zA-Z0-9-]'
// all input should have extra whitespace removed. // all input should have extra whitespace removed.
const safeRegexReplacements = [ const safeRegexReplacements = [
['\\s', 1], ['\\s', 1],
['\\d', MAX_SAFE_COMPONENT_LENGTH], ['\\d', MAX_LENGTH],
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH], [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH],
] ]
@@ -9870,7 +9874,7 @@ async function main() {
await maybeInstallRebar3(rebar3Spec) await maybeInstallRebar3(rebar3Spec)
// undefined is replaced by a function, post- main branch merge // undefined is replaced by a function, post- main branch merge
const setupBeamVersion = '4678b57' const setupBeamVersion = 'undefined'
core.setOutput('setup-beam-version', setupBeamVersion) core.setOutput('setup-beam-version', setupBeamVersion)
} }
+4 -4
View File
@@ -11,7 +11,7 @@
"@actions/exec": "1.1.1", "@actions/exec": "1.1.1",
"@actions/http-client": "2.1.0", "@actions/http-client": "2.1.0",
"@actions/tool-cache": "2.0.1", "@actions/tool-cache": "2.0.1",
"semver": "7.5.3" "semver": "7.5.4"
}, },
"devDependencies": { "devDependencies": {
"@vercel/ncc": "0.36.1", "@vercel/ncc": "0.36.1",
@@ -2290,9 +2290,9 @@
} }
}, },
"node_modules/semver": { "node_modules/semver": {
"version": "7.5.3", "version": "7.5.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.5.3.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",
"integrity": "sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ==", "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",
"dependencies": { "dependencies": {
"lru-cache": "^6.0.0" "lru-cache": "^6.0.0"
}, },
+1 -1
View File
@@ -18,7 +18,7 @@
"@actions/exec": "1.1.1", "@actions/exec": "1.1.1",
"@actions/http-client": "2.1.0", "@actions/http-client": "2.1.0",
"@actions/tool-cache": "2.0.1", "@actions/tool-cache": "2.0.1",
"semver": "7.5.3" "semver": "7.5.4"
}, },
"devDependencies": { "devDependencies": {
"@vercel/ncc": "0.36.1", "@vercel/ncc": "0.36.1",