@daiyam/artifact-npm 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25,10 +25,12 @@ jobs:
|
|
|
25
25
|
run: |
|
|
26
26
|
# Get the latest tag
|
|
27
27
|
LATEST_TAG=$(git tag --sort=-v:refname | head -n1)
|
|
28
|
+
|
|
28
29
|
if [ -z "$LATEST_TAG" ]; then
|
|
29
30
|
echo "No tags found in the repository"
|
|
30
31
|
exit 1
|
|
31
32
|
fi
|
|
33
|
+
|
|
32
34
|
echo "VERSION=$LATEST_TAG" >> $GITHUB_ENV
|
|
33
35
|
echo "Using version: $LATEST_TAG"
|
|
34
36
|
|
|
@@ -36,11 +38,14 @@ jobs:
|
|
|
36
38
|
run: |
|
|
37
39
|
# Try to get the release information
|
|
38
40
|
RELEASE_INFO=$(gh release view ${VERSION} --json assets,url 2>/dev/null || echo "")
|
|
41
|
+
|
|
39
42
|
if [ ! -z "$RELEASE_INFO" ]; then
|
|
40
43
|
echo "Release exists"
|
|
41
44
|
echo "RELEASE_EXISTS=yes" >> $GITHUB_ENV
|
|
45
|
+
|
|
42
46
|
# Get the TGZ asset URL from the release
|
|
43
47
|
TGZ_URL=$(echo $RELEASE_INFO | jq -r '.assets[] | select(.name | endswith(".tgz")) | .url')
|
|
48
|
+
|
|
44
49
|
if [ ! -z "$TGZ_URL" ]; then
|
|
45
50
|
echo "Found existing TGZ file"
|
|
46
51
|
echo "TGZ_URL=$TGZ_URL" >> $GITHUB_ENV
|
|
@@ -73,8 +78,10 @@ jobs:
|
|
|
73
78
|
run: |
|
|
74
79
|
npm ci
|
|
75
80
|
npm pack
|
|
81
|
+
|
|
76
82
|
TGZ_NAME=$(ls *.tgz)
|
|
77
83
|
CHECKSUM=$(sha256sum $TGZ_NAME | cut -d ' ' -f 1)
|
|
84
|
+
|
|
78
85
|
echo "TGZ_NAME=$TGZ_NAME" >> $GITHUB_ENV
|
|
79
86
|
echo "CHECKSUM=$CHECKSUM" >> $GITHUB_ENV
|
|
80
87
|
echo "$CHECKSUM" > "$TGZ_NAME.sha256"
|
|
@@ -83,8 +90,10 @@ jobs:
|
|
|
83
90
|
if: env.RELEASE_EXISTS == 'no'
|
|
84
91
|
run: |
|
|
85
92
|
CHANGELOG_ENTRY=$(node .github/scripts/get-changelog.js ${VERSION})
|
|
93
|
+
|
|
86
94
|
# Properly handle multiline output in GitHub Actions
|
|
87
95
|
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
|
|
96
|
+
|
|
88
97
|
echo "CHANGELOG_ENTRY<<$EOF" >> $GITHUB_ENV
|
|
89
98
|
echo "$CHANGELOG_ENTRY" >> $GITHUB_ENV
|
|
90
99
|
echo "$EOF" >> $GITHUB_ENV
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daiyam/artifact-npm",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.5",
|
|
4
4
|
"description": "The configuration to create node modules and publish them on npm.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Baptiste Augrain",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"project-template",
|
|
32
32
|
"scaffold"
|
|
33
33
|
],
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "5e7b7908f4358fd128d49236f5918003cfb10b6e"
|
|
35
35
|
}
|