@silexlabs/silex-dashboard 1.0.93 → 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 on npm
1
+ name: Publish to npm
2
+
2
3
  on:
3
4
  push:
4
5
  tags:
5
- - '*'
6
+ - 'v*'
7
+
6
8
  jobs:
7
- build:
9
+ publish:
8
10
  runs-on: ubuntu-latest
9
11
  steps:
10
- - uses: actions/checkout@v2
11
- # Setup .npmrc file to publish to npm
12
- - uses: actions/setup-node@v1
12
+ - uses: actions/checkout@v4
13
13
  with:
14
- node-version: '18.x'
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 build
18
- - run: npm publish --access public
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.93",
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",
@@ -29,15 +30,15 @@
29
30
  "devDependencies": {
30
31
  "@11ty/eleventy": "^3.0.0",
31
32
  "@tinacms/cli": "^1.9.5",
33
+ "@silexlabs/silex": "3.0.10-3",
34
+ "@silexlabs/silex-cms": "0.1.9-0",
32
35
  "@types/node": "^22.14.1",
33
36
  "concurrently": "^9.1.2",
34
37
  "start-server-and-test": "^2.0.11"
35
38
  },
36
39
  "dependencies": {
37
- "@silexlabs/silex": "^3.0.7",
38
- "@silexlabs/silex-cms": "^0.1.6",
39
40
  "locale": "^0.1.0",
40
- "node_modules-path": "^2.0.8",
41
+ "node_modules-path": "^2.0.9-2",
41
42
  "serve-static": "^2.2.0",
42
43
  "vue": "^3.5.13"
43
44
  }