@meddleware/token-deployer-ui 0.0.5 → 0.0.6

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.
@@ -1,5 +1,4 @@
1
- name: Publish
2
-
1
+ name: Publish (Docker)
3
2
  on:
4
3
  push:
5
4
  tags:
@@ -9,48 +8,27 @@ env:
9
8
  IMAGE: token-deployer-ui
10
9
 
11
10
  jobs:
12
- # ── Library source: @meddleware/token-deployer-ui → npmjs ──────────────────
13
- # Uses OIDC trusted publisher — no static NPM_TOKEN secret required.
14
- publish-npm:
15
- name: npmjs (@meddleware/token-deployer-ui)
11
+ verify:
12
+ name: Verify (type-check + test)
16
13
  runs-on: ubuntu-latest
17
- permissions:
18
- contents: read
19
- id-token: write
20
14
  steps:
21
15
  - uses: actions/checkout@v7.0.1
22
-
23
16
  - uses: actions/setup-node@v7.0.0
24
17
  with:
25
18
  node-version: '24'
26
- registry-url: 'https://registry.npmjs.org'
27
-
28
19
  - name: Install dependencies
29
20
  run: npm ci
30
-
21
+ - name: Audit dependencies
22
+ run: npm audit --audit-level=high
31
23
  - name: Type-check
32
- run: npm run type-check
33
-
34
- - name: Test
35
- run: npm test
36
-
37
- - name: Publish to npmjs (provenance via OIDC, idempotent)
38
- run: |
39
- VERSION=$(node -p "require('./package.json').version")
40
- if npm view "@meddleware/token-deployer-ui@${VERSION}" version >/dev/null 2>&1; then
41
- echo "::notice::v${VERSION} already published to npmjs — skipping"
42
- else
43
- npm publish --provenance
44
- fi
45
-
46
- # ── App: Docker image → quay.io + Docker Hub ────────────────────────────────
47
- # Split into per-arch native builds + merge so each platform compiles on its
48
- # own native runner. The arm64 Vite build runs on ubuntu-24.04-arm rather than
49
- # QEMU emulation, eliminating the ~3-5× slowdown for npm install + tsc + vite.
24
+ run: npm run type-check --if-present
25
+ - name: Unit tests
26
+ run: npm run test --if-present
50
27
 
51
28
  build-docker-amd64-public:
52
29
  name: Docker amd64 (quay.io + Docker Hub)
53
30
  runs-on: ubuntu-latest
31
+ needs: verify
54
32
  permissions:
55
33
  contents: read
56
34
  steps:
@@ -103,6 +81,7 @@ jobs:
103
81
  build-docker-arm64-public:
104
82
  name: Docker arm64 (quay.io + Docker Hub)
105
83
  runs-on: ubuntu-24.04-arm
84
+ needs: verify
106
85
  permissions:
107
86
  contents: read
108
87
  steps:
@@ -252,6 +231,7 @@ jobs:
252
231
  build-docker-amd64-private:
253
232
  name: Docker amd64 (self-hosted registry)
254
233
  runs-on: ubuntu-latest
234
+ needs: verify
255
235
  continue-on-error: true
256
236
  permissions:
257
237
  contents: read
@@ -290,6 +270,7 @@ jobs:
290
270
  build-docker-arm64-private:
291
271
  name: Docker arm64 (self-hosted registry)
292
272
  runs-on: ubuntu-24.04-arm
273
+ needs: verify
293
274
  continue-on-error: true
294
275
  permissions:
295
276
  contents: read
@@ -1,4 +1,4 @@
1
- name: CI
1
+ name: Node CI
2
2
 
3
3
  on:
4
4
  push:
@@ -0,0 +1,68 @@
1
+ name: Publish (npm)
2
+
3
+ # Publishes the app's library entry (@meddleware/token-deployer-ui) to npmjs on a v* tag, so it can be
4
+ # embedded by the dashboard. npm is a SECONDARY output here (the app also ships a
5
+ # container image via docker-publish.yml), so publication is opt-in via the
6
+ # repository variable NPM_PUBLISH and gated on a self-contained `verify` job.
7
+ # Authentication uses npm OIDC trusted publishing — no long-lived NPM_TOKEN.
8
+
9
+ on:
10
+ push:
11
+ tags:
12
+ - 'v*'
13
+
14
+ permissions:
15
+ contents: read
16
+
17
+ jobs:
18
+ verify:
19
+ name: Verify (type-check + test)
20
+ runs-on: ubuntu-latest
21
+ steps:
22
+ - uses: actions/checkout@v7.0.1
23
+ - uses: actions/setup-node@v7.0.0
24
+ with:
25
+ node-version: '24'
26
+ - name: Install dependencies
27
+ run: npm ci
28
+ - name: Audit dependencies
29
+ run: npm audit --audit-level=high
30
+ - name: Type-check
31
+ run: npm run type-check --if-present
32
+ - name: Unit tests
33
+ run: npm run test --if-present
34
+
35
+ publish-npm:
36
+ name: npmjs (@meddleware/token-deployer-ui)
37
+ needs: verify
38
+ runs-on: ubuntu-latest
39
+ permissions:
40
+ contents: read
41
+ id-token: write # required for OIDC trusted publishing
42
+ steps:
43
+ - uses: actions/checkout@v7.0.1
44
+ - uses: actions/setup-node@v7.0.0
45
+ with:
46
+ node-version: '24'
47
+ registry-url: 'https://registry.npmjs.org'
48
+ # Trusted publishing (OIDC) requires npm >= 11.5.1; Node 24 ships an older npm.
49
+ - name: Upgrade npm for trusted publishing
50
+ run: npm install -g npm@latest
51
+ - name: Install dependencies
52
+ run: npm ci
53
+ - name: Build
54
+ run: npm run build --if-present
55
+ - name: Publish to npmjs (OIDC, idempotent, opt-in)
56
+ env:
57
+ NPM_PUBLISH: ${{ vars.NPM_PUBLISH }}
58
+ run: |
59
+ if [ "${NPM_PUBLISH}" != "true" ]; then
60
+ echo "::warning::npm publishing not configured — set repository variable NPM_PUBLISH=true and configure an npmjs trusted publisher to enable it. Skipping npm publication."
61
+ exit 0
62
+ fi
63
+ VERSION=$(node -p "require('./package.json').version")
64
+ if npm view "@meddleware/token-deployer-ui@${VERSION}" version >/dev/null 2>&1; then
65
+ echo "::notice::v${VERSION} already published to npmjs — skipping."
66
+ else
67
+ npm publish
68
+ fi
package/package.json CHANGED
@@ -1,11 +1,15 @@
1
1
  {
2
2
  "name": "@meddleware/token-deployer-ui",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "type": "module",
5
5
  "exports": {
6
- ".": { "default": "./src/index.ts" }
6
+ ".": {
7
+ "default": "./src/index.ts"
8
+ }
9
+ },
10
+ "publishConfig": {
11
+ "access": "public"
7
12
  },
8
- "publishConfig": { "access": "public" },
9
13
  "scripts": {
10
14
  "dev": "vite",
11
15
  "build": "vue-tsc --noEmit && vite build",
@@ -30,10 +34,10 @@
30
34
  "verify:template": "node scripts/verify-bytecode.mjs && vitest run tests/templateArtifact.test.ts tests/templateParity.test.ts"
31
35
  },
32
36
  "dependencies": {
33
- "@meddleware/design-tokens": "^0.1.5",
34
- "@meddleware/ui": "^0.1.24",
35
- "@meddleware/wallet-adapter": "^0.0.7",
36
- "@meddleware/walrus-relay": "^0.1.16",
37
+ "@meddleware/design-tokens": "^0.1.6",
38
+ "@meddleware/ui": "^0.1.26",
39
+ "@meddleware/wallet-adapter": "^0.0.8",
40
+ "@meddleware/walrus-relay": "^0.1.17",
37
41
  "@mysten/bcs": "~2.1.0",
38
42
  "@mysten/move-bytecode-template": "~0.4.0",
39
43
  "@mysten/sui": "^2.31.0",
@@ -42,10 +46,10 @@
42
46
  "vue": "^3.5.0"
43
47
  },
44
48
  "devDependencies": {
49
+ "@playwright/test": "^1.56.0",
45
50
  "@types/node": "~24.12.2",
46
51
  "@vitejs/plugin-vue": "^6.0.8",
47
52
  "@vitejs/plugin-vue-jsx": "^5.1.6",
48
- "@playwright/test": "^1.56.0",
49
53
  "@vitest/eslint-plugin": "^1.6.23",
50
54
  "@vue/test-utils": "^2.4.0",
51
55
  "jsdom": "^29.1.1",