@silexlabs/silex-dashboard 1.0.94 → 1.0.95-1
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,20 +1,40 @@
|
|
|
1
|
-
name: Publish
|
|
1
|
+
name: Publish to npm
|
|
2
|
+
|
|
2
3
|
on:
|
|
3
4
|
push:
|
|
4
5
|
tags:
|
|
5
|
-
- '*'
|
|
6
|
+
- 'v*'
|
|
7
|
+
|
|
6
8
|
jobs:
|
|
7
|
-
|
|
9
|
+
publish:
|
|
8
10
|
runs-on: ubuntu-latest
|
|
9
11
|
steps:
|
|
10
|
-
- uses: actions/checkout@
|
|
11
|
-
# Setup .npmrc file to publish to npm
|
|
12
|
-
- uses: actions/setup-node@v1
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
13
|
with:
|
|
14
|
-
|
|
14
|
+
fetch-depth: 0
|
|
15
|
+
|
|
16
|
+
- uses: actions/setup-node@v4
|
|
17
|
+
with:
|
|
18
|
+
node-version: '20'
|
|
15
19
|
registry-url: 'https://registry.npmjs.org'
|
|
20
|
+
|
|
16
21
|
- run: npm ci
|
|
17
|
-
- run: npm run
|
|
18
|
-
- run: npm
|
|
22
|
+
- run: npm run lint --if-present
|
|
23
|
+
- run: npm run build --if-present
|
|
24
|
+
- run: npm test --if-present
|
|
25
|
+
|
|
26
|
+
- name: Extract version and tag
|
|
27
|
+
id: version
|
|
28
|
+
run: |
|
|
29
|
+
VERSION=$(node -p "require('./package.json').version")
|
|
30
|
+
if [[ "$VERSION" == *-* ]]; then
|
|
31
|
+
echo "tag=prerelease" >> $GITHUB_OUTPUT
|
|
32
|
+
else
|
|
33
|
+
echo "tag=latest" >> $GITHUB_OUTPUT
|
|
34
|
+
fi
|
|
35
|
+
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
|
36
|
+
|
|
37
|
+
- name: Publish to npm
|
|
38
|
+
run: npm publish --tag ${{ steps.version.outputs.tag }} --access public
|
|
19
39
|
env:
|
|
20
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
40
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@silexlabs/silex-dashboard",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.95-1",
|
|
4
4
|
"description": "Dashboard for Silex v3",
|
|
5
5
|
"main": "silex/server-config.js",
|
|
6
6
|
"scripts": {
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"keywords": [
|
|
20
20
|
"silex",
|
|
21
|
+
"silex-plugin",
|
|
21
22
|
"plugin"
|
|
22
23
|
],
|
|
23
24
|
"author": "lexoyo",
|
|
@@ -26,20 +27,18 @@
|
|
|
26
27
|
"url": "https://github.com/silexlabs/silex-dashboard/issues"
|
|
27
28
|
},
|
|
28
29
|
"homepage": "https://github.com/silexlabs/silex-dashboard#readme",
|
|
29
|
-
"peerDependencies": {
|
|
30
|
-
"@silexlabs/silex": ">=3.0.4",
|
|
31
|
-
"@silexlabs/silex-cms": ">=0.1.4"
|
|
32
|
-
},
|
|
33
30
|
"devDependencies": {
|
|
34
31
|
"@11ty/eleventy": "^3.0.0",
|
|
35
32
|
"@tinacms/cli": "^1.9.5",
|
|
33
|
+
"@silexlabs/silex": "3.0.10-3",
|
|
34
|
+
"@silexlabs/silex-cms": "0.1.9-0",
|
|
36
35
|
"@types/node": "^22.14.1",
|
|
37
36
|
"concurrently": "^9.1.2",
|
|
38
37
|
"start-server-and-test": "^2.0.11"
|
|
39
38
|
},
|
|
40
39
|
"dependencies": {
|
|
41
40
|
"locale": "^0.1.0",
|
|
42
|
-
"node_modules-path": "^2.0.
|
|
41
|
+
"node_modules-path": "^2.0.9-2",
|
|
43
42
|
"serve-static": "^2.2.0",
|
|
44
43
|
"vue": "^3.5.13"
|
|
45
44
|
}
|