Update package version to 11.6.0

This commit is contained in:
2025-09-13 13:02:21 +03:00
parent 8ae3595559
commit 0d051d2677
3 changed files with 14 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Github repository
REPO="npm/cli"
# Get tag name using Github Rest API
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
# Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
echo "$VERSION"
+1 -1
View File
@@ -1,6 +1,6 @@
name: npm name: npm
description: Package Manager for JavaScript description: Package Manager for JavaScript
version: 11.2.0 version: 11.6.0
url: https://www.npmjs.com/ url: https://www.npmjs.com/
license: Artistic-2.0 license: Artistic-2.0
architecture: any architecture: any
+1 -1
View File
@@ -11,7 +11,7 @@ REPO="https://github.com/npm/cli.git"
# The prepare function is executed in the root of the temp directory # The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location # This function is used for downloading files and putting them into the correct location
prepare() { prepare() {
git clone --single-branch --branch "v${BPM_PKG_VERSION}" "$REPO" "$BPM_SOURCE" git clone --depth 1 --branch "v${BPM_PKG_VERSION}" "$REPO" "$BPM_SOURCE"
} }
# The build function is executed in the source directory # The build function is executed in the source directory