fleetmap-reports 2.0.367 → 2.0.368

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.
@@ -0,0 +1,47 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - dev
7
+ paths:
8
+ - package.json
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ publish:
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout
18
+ uses: actions/checkout@v4
19
+
20
+ - name: Setup Node
21
+ uses: actions/setup-node@v4
22
+ with:
23
+ node-version: '20'
24
+ registry-url: 'https://registry.npmjs.org'
25
+
26
+ - name: Check if version changed
27
+ id: version-check
28
+ run: |
29
+ LOCAL_VERSION=$(node -p "require('./package.json').version")
30
+ PUBLISHED_VERSION=$(npm view fleetmap-reports version 2>/dev/null || echo "none")
31
+ echo "Local version: $LOCAL_VERSION"
32
+ echo "Published version: $PUBLISHED_VERSION"
33
+ if [ "$LOCAL_VERSION" != "$PUBLISHED_VERSION" ]; then
34
+ echo "changed=true" >> "$GITHUB_OUTPUT"
35
+ else
36
+ echo "changed=false" >> "$GITHUB_OUTPUT"
37
+ fi
38
+
39
+ - name: Install dependencies
40
+ if: steps.version-check.outputs.changed == 'true'
41
+ run: npm ci
42
+
43
+ - name: Publish to npm
44
+ if: steps.version-check.outputs.changed == 'true'
45
+ run: npm publish
46
+ env:
47
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fleetmap-reports",
3
- "version": "2.0.367",
3
+ "version": "2.0.368",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {