Skip to content

Commit fa8569c

Browse files
committed
[web.explorer] release 0.0.118
1 parent c171a76 commit fa8569c

File tree

5 files changed

+135
-85
lines changed

5 files changed

+135
-85
lines changed

.github/workflows/web-editor.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ jobs:
6161
- name: Build Lockfile
6262
run: npm run build:lock
6363

64+
- name: Check Version
65+
if: github.ref_type == 'tag'
66+
run: |
67+
VERSION_FROM_PKG=$(npm pkg get version --workspaces=false | tr -d '"')
68+
TAG_NAME=${GITHUB_REF#refs/tags/}
69+
VERSION_FROM_TAG=${TAG_NAME#web.editor/v}
70+
71+
if [ "$VERSION_FROM_TAG" != "$VERSION_FROM_PKG" ]; then
72+
echo "Version mismatch: Tag version $VERSION_FROM_TAG does not match package.json version $VERSION_FROM_PKG"
73+
exit 1
74+
fi
75+
echo "Version $VERSION_FROM_PKG matches."
76+
77+
6478
- name: Docker meta
6579
id: meta
6680
uses: docker/metadata-action@v5

.github/workflows/web-explorer.yml

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: Web Explorer
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- 'web/v*'
9+
paths:
10+
- 'packages/web/explorer/**'
11+
- '.github/workflows/web-explorer.yml'
12+
13+
defaults:
14+
run:
15+
working-directory: packages/web/explorer
16+
17+
jobs:
18+
check:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Node
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '22'
28+
cache: 'npm'
29+
30+
- name: Install Dependencies
31+
run: npm ci
32+
33+
- name: Build Lock
34+
run: npm run build:lock
35+
36+
- name: Install Dependencies
37+
run: npm ci --workspaces=false
38+
39+
- name: Lint
40+
run: npm run lint
41+
42+
- name: Check
43+
run: npm run check
44+
45+
build-push:
46+
needs: check
47+
runs-on: ubuntu-latest
48+
permissions:
49+
contents: read
50+
packages: write
51+
steps:
52+
- name: Checkout
53+
uses: actions/checkout@v4
54+
55+
- name: Setup Node
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: '22'
59+
cache: 'npm'
60+
61+
- name: Build Lockfile
62+
run: npm run build:lock
63+
64+
- name: Check Version
65+
if: github.ref_type == 'tag'
66+
run: |
67+
VERSION_FROM_PKG=$(npm pkg get version --workspaces=false | tr -d '"')
68+
TAG_NAME=${GITHUB_REF#refs/tags/}
69+
VERSION_FROM_TAG=${TAG_NAME#web/v}
70+
71+
if [ "$VERSION_FROM_TAG" != "$VERSION_FROM_PKG" ]; then
72+
echo "Version mismatch: Tag version $VERSION_FROM_TAG does not match package.json version $VERSION_FROM_PKG"
73+
exit 1
74+
fi
75+
echo "Version $VERSION_FROM_PKG matches."
76+
77+
- name: Docker meta
78+
id: meta
79+
uses: docker/metadata-action@v5
80+
with:
81+
images: ghcr.io/eleith/luzzle-web
82+
tags: |
83+
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
84+
type=match,pattern=web/v(\d+),group=1
85+
type=match,pattern=web/v(\d+\.\d+),group=1
86+
type=match,pattern=web/v(\d+\.\d+\.\d+),group=1
87+
88+
- name: Create dummy npmrc
89+
run: touch .npmrc
90+
91+
- name: Log in to the Container registry
92+
uses: docker/login-action@v3
93+
with:
94+
registry: ghcr.io
95+
username: ${{ github.actor }}
96+
password: ${{ secrets.GITHUB_TOKEN }}
97+
98+
- name: Build and push Docker image
99+
uses: docker/build-push-action@v6
100+
with:
101+
context: packages/web/explorer
102+
push: true
103+
tags: ${{ steps.meta.outputs.tags }}
104+
labels: ${{ steps.meta.outputs.labels }}
105+
secrets: |
106+
"npmrc=.npmrc"

.woodpecker/.web-explorer.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ steps:
2727
commands:
2828
- cd packages/web/explorer
2929
- npm run lint
30-
- ls -la ./node_modules
31-
- ls -la ./node_modules/.bin
3230
- npm run check
3331

3432
check-version:
@@ -68,7 +66,7 @@ steps:
6866
build-docker-main:
6967
image: woodpeckerci/plugin-docker-buildx:6.0.3
7068
settings:
71-
repo: git.eleith.com/eleith.private/luzzle-explorer
69+
repo: git.eleith.com/eleith.private/luzzle-web
7270
username: eleith
7371
dockerfile: packages/web/explorer/Dockerfile
7472
context: packages/web/explorer
@@ -86,7 +84,7 @@ steps:
8684
build-docker-tag:
8785
image: woodpeckerci/plugin-docker-buildx:6.0.3
8886
settings:
89-
repo: git.eleith.com/eleith.private/luzzle-explorer
87+
repo: git.eleith.com/eleith.private/luzzle-web
9088
username: eleith
9189
dockerfile: packages/web/explorer/Dockerfile
9290
context: packages/web/explorer

package-lock.json

Lines changed: 7 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/web/explorer/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@luzzle/web",
3-
"version": "0.0.117",
3+
"version": "0.0.118",
44
"private": true,
55
"scripts": {
66
"dev": "vite dev",
@@ -26,12 +26,12 @@
2626
},
2727
"repository": {
2828
"type": "git",
29-
"url": "git+https://git.eleith.com/eleith/eleith.git"
29+
"url": "git+https://github.com/eleith/luzzle.git"
3030
},
3131
"devDependencies": {
3232
"@iconify-json/ph": "1.2.2",
33-
"@luzzle/cli": "0.0.126",
34-
"@luzzle/web.tools": "0.0.70",
33+
"@luzzle/cli": "0.0.127",
34+
"@luzzle/web.tools": "0.0.71",
3535
"@sveltejs/adapter-node": "5.3.2",
3636
"@sveltejs/enhanced-img": "0.8.1",
3737
"@sveltejs/kit": "2.43.0",
@@ -57,8 +57,8 @@
5757
},
5858
"type": "module",
5959
"dependencies": {
60-
"@luzzle/core": "0.0.33",
61-
"@luzzle/web.utils": "0.0.12",
60+
"@luzzle/core": "0.0.34",
61+
"@luzzle/web.utils": "0.0.13",
6262
"better-sqlite3": "11.7.2",
6363
"bits-ui": "2.14.1",
6464
"devlop": "1.1.0",

0 commit comments

Comments
 (0)