@signalk/app-dock 0.3.0-beta.2 → 0.3.0

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,28 +1,28 @@
1
1
  name: 'Release on tag'
2
+
2
3
  on:
3
4
  push:
4
5
  tags:
5
- - '*'
6
+ - 'v*'
7
+
8
+ concurrency:
9
+ group: release-${{ github.ref }}
10
+ cancel-in-progress: false
6
11
 
7
12
  jobs:
8
13
  release:
9
14
  permissions:
10
15
  contents: write
11
- if: startsWith(github.ref, 'refs/tags/')
12
16
  runs-on: ubuntu-latest
17
+ timeout-minutes: 10
13
18
  steps:
14
- - name: Build Changelog
15
- id: github_release
16
- uses: mikepenz/release-changelog-builder-action@v1
17
- env:
18
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19
-
20
19
  - name: Create Release
21
- uses: actions/create-release@v1
20
+ uses: softprops/action-gh-release@v3
22
21
  with:
23
- tag_name: ${{ github.ref }}
24
- release_name: ${{ github.ref }}
25
- body: ${{steps.github_release.outputs.changelog}}
22
+ tag_name: ${{ github.ref_name }}
23
+ name: ${{ github.ref_name }}
24
+ generate_release_notes: true
25
+ prerelease: ${{ contains(github.ref_name, 'beta') || contains(github.ref_name, 'alpha') || contains(github.ref_name, 'rc') }}
26
26
  env:
27
27
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28
28
 
@@ -32,25 +32,26 @@ jobs:
32
32
  id-token: write
33
33
  contents: read
34
34
  runs-on: ubuntu-latest
35
+ timeout-minutes: 10
35
36
  steps:
36
- - uses: actions/checkout@v6
37
- - uses: actions/setup-node@v6
38
- with:
39
- node-version: '24.x'
40
- registry-url: 'https://registry.npmjs.org'
37
+ - uses: actions/checkout@v6
38
+
39
+ - uses: actions/setup-node@v6
40
+ with:
41
+ node-version: '24.x'
42
+ registry-url: 'https://registry.npmjs.org'
41
43
 
42
- - name: Install
43
- run: |
44
- npm install
44
+ - run: npm ci
45
45
 
46
- - name: Publish
47
- run: |
48
- npm install -g npm@latest
49
- npm --version
50
- tag="${GITHUB_REF#refs/tags/}"
51
- if [[ "$tag" == *beta* ]];
52
- then
46
+ - name: Publish to npm
47
+ run: |
48
+ tag="${GITHUB_REF#refs/tags/}"
49
+ if [[ "$tag" == *alpha* ]]; then
50
+ npm publish --provenance --access public --tag alpha
51
+ elif [[ "$tag" == *beta* ]]; then
53
52
  npm publish --provenance --access public --tag beta
53
+ elif [[ "$tag" == *rc* ]]; then
54
+ npm publish --provenance --access public --tag rc
54
55
  else
55
56
  npm publish --provenance --access public
56
- fi
57
+ fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalk/app-dock",
3
- "version": "0.3.0-beta.2",
3
+ "version": "0.3.0",
4
4
  "description": "macOS-style configurable app dock for switching between SignalK webapps on touch screens",
5
5
  "repository": {
6
6
  "url": "https://github.com/SignalK/app-dock"