genlayer 0.40.0-clarke.1 → 0.40.0-rc1
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.
- package/.github/workflows/publish.yml +6 -7
- package/CHANGELOG.md +0 -8
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/.github/workflows/npm-dist-tag.yml +0 -81
|
@@ -9,9 +9,9 @@ name: Publish Package to NPM
|
|
|
9
9
|
# Release. It never bumps or tags by itself.
|
|
10
10
|
#
|
|
11
11
|
# Stable tags such as v0.39.2 publish to npm's latest dist-tag.
|
|
12
|
-
# Prerelease tags such as v0.40.0-
|
|
13
|
-
#
|
|
14
|
-
#
|
|
12
|
+
# Prerelease tags such as v0.40.0-rc1 publish to a matching prerelease
|
|
13
|
+
# dist-tag (rc1) and create a GitHub prerelease. Prereleases must never
|
|
14
|
+
# become latest.
|
|
15
15
|
on:
|
|
16
16
|
workflow_dispatch:
|
|
17
17
|
push:
|
|
@@ -57,9 +57,8 @@ jobs:
|
|
|
57
57
|
NPM_DIST_TAG=latest
|
|
58
58
|
if [[ "$TAG_VERSION" == *-* ]]; then
|
|
59
59
|
IS_PRERELEASE=true
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
NPM_DIST_TAG="${PRERELEASE_SUFFIX%%.*}"
|
|
60
|
+
NPM_DIST_TAG="${TAG_VERSION#*-}"
|
|
61
|
+
NPM_DIST_TAG="${NPM_DIST_TAG%%+*}"
|
|
63
62
|
|
|
64
63
|
if [ -z "$NPM_DIST_TAG" ] || [ "$NPM_DIST_TAG" = "latest" ]; then
|
|
65
64
|
echo "Invalid prerelease npm dist-tag: '$NPM_DIST_TAG'" >&2
|
|
@@ -82,7 +81,7 @@ jobs:
|
|
|
82
81
|
- name: Publish to npm
|
|
83
82
|
run: npm publish --provenance --access public --tag "${{ steps.version.outputs.npm_dist_tag }}"
|
|
84
83
|
env:
|
|
85
|
-
NODE_AUTH_TOKEN: ${{ secrets.
|
|
84
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
86
85
|
|
|
87
86
|
- name: Create GitHub Release
|
|
88
87
|
env:
|
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.40.0-clarke.1](https://github.com/genlayerlabs/genlayer-cli/compare/v0.40.0-rc2...v0.40.0-clarke.1) (2026-07-08)
|
|
4
|
-
|
|
5
|
-
## [0.40.0-rc2](https://github.com/genlayerlabs/genlayer-cli/compare/v0.40.0-rc1...v0.40.0-rc2) (2026-07-08)
|
|
6
|
-
|
|
7
|
-
### Bug Fixes
|
|
8
|
-
|
|
9
|
-
* avoid git dependency in npm prerelease install ([#368](https://github.com/genlayerlabs/genlayer-cli/issues/368)) ([3cd1cac](https://github.com/genlayerlabs/genlayer-cli/commit/3cd1cac564932d67e5b1200d4396ca24556d2e46))
|
|
10
|
-
|
|
11
3
|
## [0.40.0-rc1](https://github.com/genlayerlabs/genlayer-cli/compare/v0.39.1...v0.40.0-rc1) (2026-07-08)
|
|
12
4
|
|
|
13
5
|
### ⚠ BREAKING CHANGES
|
package/dist/index.js
CHANGED
|
@@ -20078,7 +20078,7 @@ var require_cli_table3 = __commonJS({
|
|
|
20078
20078
|
import { program } from "commander";
|
|
20079
20079
|
|
|
20080
20080
|
// package.json
|
|
20081
|
-
var version = "0.40.0-
|
|
20081
|
+
var version = "0.40.0-rc1";
|
|
20082
20082
|
var package_default = {
|
|
20083
20083
|
name: "genlayer",
|
|
20084
20084
|
version,
|
|
@@ -20134,7 +20134,6 @@ var package_default = {
|
|
|
20134
20134
|
"eslint-config-prettier": "^10.0.0",
|
|
20135
20135
|
"eslint-import-resolver-typescript": "^4.0.0",
|
|
20136
20136
|
"eslint-plugin-import": "^2.29.1",
|
|
20137
|
-
"genlayer-js": "github:genlayerlabs/genlayer-js#v2-dev",
|
|
20138
20137
|
jsdom: "^26.0.0",
|
|
20139
20138
|
prettier: "^3.2.5",
|
|
20140
20139
|
"release-it": "^19.0.0",
|
|
@@ -20149,6 +20148,7 @@ var package_default = {
|
|
|
20149
20148
|
dotenv: "^17.0.0",
|
|
20150
20149
|
ethers: "^6.13.4",
|
|
20151
20150
|
"fs-extra": "^11.3.0",
|
|
20151
|
+
"genlayer-js": "github:genlayerlabs/genlayer-js#v2-dev",
|
|
20152
20152
|
inquirer: "^12.0.0",
|
|
20153
20153
|
"node-fetch": "^3.0.0",
|
|
20154
20154
|
open: "^10.1.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "genlayer",
|
|
3
|
-
"version": "0.40.0-
|
|
3
|
+
"version": "0.40.0-rc1",
|
|
4
4
|
"description": "GenLayer Command Line Tool",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
"eslint-config-prettier": "^10.0.0",
|
|
54
54
|
"eslint-import-resolver-typescript": "^4.0.0",
|
|
55
55
|
"eslint-plugin-import": "^2.29.1",
|
|
56
|
-
"genlayer-js": "github:genlayerlabs/genlayer-js#v2-dev",
|
|
57
56
|
"jsdom": "^26.0.0",
|
|
58
57
|
"prettier": "^3.2.5",
|
|
59
58
|
"release-it": "^19.0.0",
|
|
@@ -68,6 +67,7 @@
|
|
|
68
67
|
"dotenv": "^17.0.0",
|
|
69
68
|
"ethers": "^6.13.4",
|
|
70
69
|
"fs-extra": "^11.3.0",
|
|
70
|
+
"genlayer-js": "github:genlayerlabs/genlayer-js#v2-dev",
|
|
71
71
|
"inquirer": "^12.0.0",
|
|
72
72
|
"node-fetch": "^3.0.0",
|
|
73
73
|
"open": "^10.1.0",
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
name: Manage npm dist-tag
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
inputs:
|
|
6
|
-
package_version:
|
|
7
|
-
description: "Published genlayer version to point the dist-tag at, e.g. 0.40.0-rc2"
|
|
8
|
-
required: true
|
|
9
|
-
type: string
|
|
10
|
-
dist_tag:
|
|
11
|
-
description: "npm dist-tag to set, e.g. clarke"
|
|
12
|
-
required: true
|
|
13
|
-
type: string
|
|
14
|
-
|
|
15
|
-
permissions:
|
|
16
|
-
contents: read
|
|
17
|
-
|
|
18
|
-
jobs:
|
|
19
|
-
set-dist-tag:
|
|
20
|
-
runs-on: ubuntu-latest
|
|
21
|
-
environment: Publish
|
|
22
|
-
steps:
|
|
23
|
-
- uses: actions/setup-node@v4
|
|
24
|
-
with:
|
|
25
|
-
node-version: "24"
|
|
26
|
-
registry-url: "https://registry.npmjs.org"
|
|
27
|
-
|
|
28
|
-
- name: Validate inputs
|
|
29
|
-
env:
|
|
30
|
-
PACKAGE_VERSION: ${{ inputs.package_version }}
|
|
31
|
-
DIST_TAG: ${{ inputs.dist_tag }}
|
|
32
|
-
run: |
|
|
33
|
-
set -euo pipefail
|
|
34
|
-
|
|
35
|
-
PACKAGE_VERSION="${PACKAGE_VERSION#v}"
|
|
36
|
-
|
|
37
|
-
if [[ ! "$PACKAGE_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z._-]+)?(\+[0-9A-Za-z._-]+)?$ ]]; then
|
|
38
|
-
echo "Invalid package_version: $PACKAGE_VERSION" >&2
|
|
39
|
-
exit 1
|
|
40
|
-
fi
|
|
41
|
-
|
|
42
|
-
if [[ ! "$DIST_TAG" =~ ^[A-Za-z][A-Za-z0-9._-]*$ ]]; then
|
|
43
|
-
echo "Invalid dist_tag: $DIST_TAG" >&2
|
|
44
|
-
exit 1
|
|
45
|
-
fi
|
|
46
|
-
|
|
47
|
-
if [ "$DIST_TAG" = "latest" ]; then
|
|
48
|
-
echo "This workflow intentionally refuses to move latest." >&2
|
|
49
|
-
exit 1
|
|
50
|
-
fi
|
|
51
|
-
|
|
52
|
-
if [[ "$DIST_TAG" =~ ^v?[0-9] ]]; then
|
|
53
|
-
echo "Invalid dist_tag '$DIST_TAG': dist-tags must not look like versions." >&2
|
|
54
|
-
exit 1
|
|
55
|
-
fi
|
|
56
|
-
|
|
57
|
-
PUBLISHED_VERSION="$(npm view "genlayer@$PACKAGE_VERSION" version)"
|
|
58
|
-
if [ "$PUBLISHED_VERSION" != "$PACKAGE_VERSION" ]; then
|
|
59
|
-
echo "Published package mismatch: requested $PACKAGE_VERSION, npm returned $PUBLISHED_VERSION" >&2
|
|
60
|
-
exit 1
|
|
61
|
-
fi
|
|
62
|
-
|
|
63
|
-
{
|
|
64
|
-
echo "package_version=$PACKAGE_VERSION"
|
|
65
|
-
echo "dist_tag=$DIST_TAG"
|
|
66
|
-
} >> "$GITHUB_ENV"
|
|
67
|
-
|
|
68
|
-
- name: Set npm dist-tag
|
|
69
|
-
run: npm dist-tag add "genlayer@$package_version" "$dist_tag"
|
|
70
|
-
env:
|
|
71
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN || secrets.NPM_TOKEN }}
|
|
72
|
-
|
|
73
|
-
- name: Verify npm dist-tag
|
|
74
|
-
run: |
|
|
75
|
-
set -euo pipefail
|
|
76
|
-
ACTUAL_VERSION="$(npm view "genlayer@$dist_tag" version)"
|
|
77
|
-
if [ "$ACTUAL_VERSION" != "$package_version" ]; then
|
|
78
|
-
echo "dist-tag $dist_tag points at $ACTUAL_VERSION, expected $package_version" >&2
|
|
79
|
-
exit 1
|
|
80
|
-
fi
|
|
81
|
-
echo "genlayer@$dist_tag -> $ACTUAL_VERSION"
|