Update package version to 11.6.0
This commit is contained in:
@@ -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,6 +1,6 @@
|
||||
name: npm
|
||||
description: Package Manager for JavaScript
|
||||
version: 11.2.0
|
||||
version: 11.6.0
|
||||
url: https://www.npmjs.com/
|
||||
license: Artistic-2.0
|
||||
architecture: any
|
||||
|
||||
@@ -11,7 +11,7 @@ REPO="https://github.com/npm/cli.git"
|
||||
# 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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user