genlayer-js 0.18.9 → 0.18.11

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/.eslintignore CHANGED
@@ -1,2 +1,3 @@
1
1
  node_modules
2
- dist
2
+ dist
3
+ vitest.smoke.config.ts
@@ -5,10 +5,71 @@ on:
5
5
  push:
6
6
  branches:
7
7
  - main
8
+ pull_request:
9
+ branches:
10
+ - main
11
+
12
+ permissions:
13
+ contents: write
14
+ id-token: write
8
15
 
9
16
  jobs:
10
17
  release:
18
+ # runs-on: ubuntu-latest
19
+ # steps:
20
+ # - name: Get CI Bot Token
21
+ # uses: tibdex/github-app-token@v1
22
+ # id: ci_bot_token
23
+ # with:
24
+ # app_id: ${{ secrets.CI_BOT_APP_ID }}
25
+ # private_key: ${{ secrets.CI_BOT_SECRET }}
26
+
27
+ # - name: Checkout source code
28
+ # uses: actions/checkout@v4
29
+ # with:
30
+ # token: ${{ steps.ci_bot_token.outputs.token }}
31
+ # - name: Setup Node.js
32
+ # uses: actions/setup-node@v4
33
+ # with:
34
+ # node-version: "22"
35
+ # registry-url: "https://registry.npmjs.org"
36
+ # - name: Upgrade npm for OIDC trusted publishing
37
+ # run: npm install -g npm@latest
38
+ # - name: Configure OIDC auth
39
+ # run: |
40
+ # sed -i '/_authToken/d' "$NPM_CONFIG_USERCONFIG"
41
+ # unset NODE_AUTH_TOKEN
42
+ # - name: Install the dependencies
43
+ # run: npm ci
44
+ # - name: Initialize Git User
45
+ # run: |
46
+ # git config --global user.email "github-actions[bot]@genlayer.com"
47
+ # git config --global user.name "github-actions[bot]"
48
+ # - name: Debug OIDC exchange
49
+ # run: |
50
+ # sed -i '/_authToken/d' "$NPM_CONFIG_USERCONFIG"
51
+ # unset NODE_AUTH_TOKEN
52
+ # echo "=== npm $(npm --version) ==="
53
+ # echo "=== Manual OIDC token exchange ==="
54
+ # OIDC_TOKEN=$(curl -sS -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
55
+ # "${ACTIONS_ID_TOKEN_REQUEST_URL}&audience=https://registry.npmjs.org" | jq -r '.value')
56
+ # echo "=== OIDC token claims (decoded JWT payload) ==="
57
+ # echo "$OIDC_TOKEN" | cut -d. -f2 | base64 -d 2>/dev/null | jq . || echo "(decode failed)"
58
+ # EXCHANGE=$(curl -sS -w "\nHTTP_CODE:%{http_code}" \
59
+ # -X POST "https://registry.npmjs.org/-/npm/v1/oidc/token/exchange/package/genlayer-js" \
60
+ # -H "Authorization: Bearer $OIDC_TOKEN" \
61
+ # -H "Content-Type: application/json" \
62
+ # -d '{}')
63
+ # echo "Exchange response: $EXCHANGE"
64
+ # - name: Release
65
+ # run: |
66
+ # sed -i '/_authToken/d' "$NPM_CONFIG_USERCONFIG"
67
+ # unset NODE_AUTH_TOKEN
68
+ # npm run release
69
+ # env:
70
+ # GITHUB_TOKEN: ${{ steps.ci_bot_token.outputs.token }}
11
71
  runs-on: ubuntu-latest
72
+ environment: npm
12
73
  steps:
13
74
  - name: Get CI Bot Token
14
75
  uses: tibdex/github-app-token@v1
@@ -21,21 +82,17 @@ jobs:
21
82
  uses: actions/checkout@v4
22
83
  with:
23
84
  token: ${{ steps.ci_bot_token.outputs.token }}
24
- - name: Setup Node.js
25
- uses: actions/setup-node@v2
85
+
86
+ - uses: actions/setup-node@v4
26
87
  with:
27
- node-version: "18"
28
- - name: Install the dependencies
29
- run: npm ci
30
- - name: Initialize Git User
31
- run: |
32
- git config --global user.email "github-actions[bot]@genlayer.com"
33
- git config --global user.name "github-actions[bot]"
34
- - name: Initialize the NPM configuration
35
- run: npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
36
- env:
37
- NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
38
- - run: npm run release
88
+ node-version: "22"
89
+ registry-url: "https://registry.npmjs.org"
90
+
91
+ - run: npm install -g npm@latest
92
+
93
+ - run: npm ci
94
+
95
+ - name: Release
96
+ run: npm run release
39
97
  env:
40
- GITHUB_TOKEN: ${{ steps.ci_bot_token.outputs.token }}
41
- NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
98
+ GITHUB_TOKEN: ${{ steps.ci_bot_token.outputs.token }}
@@ -0,0 +1,27 @@
1
+ name: Smoke Tests
2
+
3
+ on:
4
+ pull_request:
5
+ schedule:
6
+ - cron: '0 8 * * *'
7
+ workflow_dispatch:
8
+
9
+ jobs:
10
+ smoke:
11
+ name: Testnet Smoke Tests
12
+ runs-on: ubuntu-latest
13
+ timeout-minutes: 5
14
+ continue-on-error: true
15
+
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - uses: actions/setup-node@v4
20
+ with:
21
+ node-version: 22
22
+ cache: npm
23
+
24
+ - run: npm ci
25
+
26
+ - name: Run smoke tests
27
+ run: npm run test:smoke
package/.release-it.json CHANGED
@@ -12,7 +12,9 @@
12
12
  "tokenRef": "GITHUB_TOKEN"
13
13
  },
14
14
  "npm": {
15
- "publish": true
15
+ "publish": true,
16
+ "publishArgs": ["--provenance --access public"],
17
+ "skipChecks": true
16
18
  },
17
19
  "plugins": {
18
20
  "@release-it/conventional-changelog": {
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
 
2
2
 
3
+ ## 0.18.11 (2026-02-16)
4
+
5
+ ## 0.18.10 (2026-02-07)
6
+
3
7
  ## 0.18.9 (2025-12-12)
4
8
 
5
9
  ## 0.18.8 (2025-12-05)
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkSC2VXHL3cjs = require('../chunk-SC2VXHL3.cjs');
5
+ var _chunk5TKVNHAOcjs = require('../chunk-5TKVNHAO.cjs');
6
6
  require('../chunk-75ZPJI57.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.localnet = _chunkSC2VXHL3cjs.localnet; exports.studionet = _chunkSC2VXHL3cjs.studionet; exports.testnetAsimov = _chunkSC2VXHL3cjs.testnetAsimov;
11
+ exports.localnet = _chunk5TKVNHAOcjs.localnet; exports.studionet = _chunk5TKVNHAOcjs.studionet; exports.testnetAsimov = _chunk5TKVNHAOcjs.testnetAsimov;
@@ -2,7 +2,7 @@ import {
2
2
  localnet,
3
3
  studionet,
4
4
  testnetAsimov
5
- } from "../chunk-V3MYVW3P.js";
5
+ } from "../chunk-NOFMB7RP.js";
6
6
  import "../chunk-MLKGABMK.js";
7
7
  export {
8
8
  localnet,