dashcam 1.1.0-beta.2 → 1.1.0-beta.5

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.
@@ -8,7 +8,7 @@ on:
8
8
  jobs:
9
9
  publish-beta:
10
10
  runs-on: ubuntu-latest
11
-
11
+
12
12
  steps:
13
13
  - uses: actions/checkout@v4
14
14
  with:
@@ -25,25 +25,39 @@ jobs:
25
25
  git config --global user.name "github-actions[bot]"
26
26
  git config --global user.email "github-actions[bot]@users.noreply.github.com"
27
27
 
28
+ - name: Check if this is a version bump commit
29
+ id: check_commit
30
+ run: |
31
+ if echo "${{ github.event.head_commit.message }}" | grep -q "chore: bump beta version"; then
32
+ echo "skip=true" >> $GITHUB_OUTPUT
33
+ else
34
+ echo "skip=false" >> $GITHUB_OUTPUT
35
+ fi
36
+
28
37
  - name: Install dependencies
38
+ if: steps.check_commit.outputs.skip != 'true'
29
39
  run: npm install
30
40
 
31
41
  - name: Commit dependency changes
42
+ if: steps.check_commit.outputs.skip != 'true'
32
43
  run: |
33
44
  git add package-lock.json
34
45
  git diff --staged --quiet || git commit -m "chore: update package-lock.json"
35
46
 
36
47
  - name: Bump version (prerelease beta)
48
+ if: steps.check_commit.outputs.skip != 'true'
37
49
  run: |
38
50
  npm version prerelease --preid=beta -m "chore: bump beta version to %s"
39
51
  env:
40
52
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41
53
 
42
54
  - name: Publish to npm under beta tag
55
+ if: steps.check_commit.outputs.skip != 'true'
43
56
  run: npm publish --tag beta
44
57
  env:
45
58
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
46
59
 
47
60
  - name: Push version bump commit + tag
61
+ if: steps.check_commit.outputs.skip != 'true'
48
62
  run: |
49
63
  git push --follow-tags
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dashcam",
3
- "version": "1.1.0-beta.2",
3
+ "version": "1.1.0-beta.5",
4
4
  "description": "Minimal CLI version of Dashcam desktop app",
5
5
  "main": "bin/index.js",
6
6
  "bin": {