@genesislcap/blank-app-seed 5.17.3-prerelease.2 → 5.17.3-prerelease.3

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed-config",
3
3
  "description": "Genesis Blank App Seed Configuration",
4
- "version": "5.17.3-prerelease.2",
4
+ "version": "5.17.3-prerelease.3",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "lint": "eslint .",
@@ -0,0 +1,96 @@
1
+ name: Release
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ push:
6
+ branches: [main, prerelease]
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ environment: deploy
12
+ concurrency:
13
+ group: publish-${{ github.ref }}
14
+ cancel-in-progress: false
15
+ permissions:
16
+ contents: read
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ with:
21
+ token: ${{secrets.GH_USER_TOKEN}}
22
+
23
+ - name: Set up Node
24
+ uses: actions/setup-node@v4
25
+ with:
26
+ node-version: 20
27
+ registry-url: https://registry.npmjs.org
28
+
29
+ - name: Upgrade npm for trusted publishing
30
+ run: npm install -g npm@^11.5.1
31
+
32
+ - name: Release
33
+ env:
34
+ GH_TOKEN: ${{secrets.GH_USER_TOKEN}}
35
+ run: |
36
+ touch /tmp/dist-tag # create a blank file, so it's always there even if we don't do a release
37
+ npm install
38
+ npm run release
39
+
40
+ - name: Set dist tag
41
+ id: dist-tag
42
+ run: |
43
+ NAME=$(node -p "require('./package.json').name")
44
+ VERSION=$(node -p "require('./package.json').version")
45
+
46
+ TAG=$(cat /tmp/dist-tag)
47
+ if [ -z "$TAG" ]; then
48
+ # No release happened this run. Derive the tag the current
49
+ # package.json version would have released under, so a
50
+ # previous run's failed publish can still be retried below.
51
+ #
52
+ # NOTE: this assumes the version's prerelease identifier and the
53
+ # semantic-release channel are the same string. That only holds
54
+ # because .releaserc's "prerelease" branch has no explicit
55
+ # "channel", so semantic-release defaults both the preid and the
56
+ # channel to the branch name. If that branch config ever sets an
57
+ # explicit "channel" or a differing "prerelease" identifier, this
58
+ # derivation will diverge from the real channel and this retry
59
+ # path will publish under the wrong dist-tag.
60
+ case "$VERSION" in
61
+ *-*) TAG="${VERSION#*-}"; TAG="${TAG%%.*}" ;;
62
+ *) TAG="latest" ;;
63
+ esac
64
+ fi
65
+
66
+ # Key the publish decision off the registry rather than off
67
+ # whether *this* run produced a release, so a flaky publish
68
+ # after semantic-release has already committed/tagged is
69
+ # retried on the next run instead of silently skipped.
70
+ # (stderr is captured separately so a stray npm notice on stderr
71
+ # can't masquerade as a real version and suppress the E404 check.)
72
+ if OUT=$(npm view "$NAME@$VERSION" version 2>/tmp/npm-view-err); then
73
+ [ -n "$OUT" ] && NEEDS_PUBLISH=false || NEEDS_PUBLISH=true
74
+ else
75
+ ERR=$(cat /tmp/npm-view-err)
76
+ case "$ERR" in
77
+ *E404*) NEEDS_PUBLISH=true ;;
78
+ *)
79
+ echo "::error::npm view failed unexpectedly: $ERR"
80
+ exit 1
81
+ ;;
82
+ esac
83
+ fi
84
+
85
+ echo "TAG=$TAG" >> "$GITHUB_OUTPUT"
86
+ echo "NEEDS_PUBLISH=$NEEDS_PUBLISH" >> "$GITHUB_OUTPUT"
87
+
88
+ - name: Generate .npmignore
89
+ run: cp .gitignore .npmignore && echo '!.gitignore' >> .npmignore && cat .npmignore
90
+
91
+ - name: NPM pack dry-run
92
+ run: npm pack --dry-run
93
+
94
+ - name: Publish
95
+ if: steps.dist-tag.outputs.NEEDS_PUBLISH == 'true'
96
+ run: npm publish --tag "${{ steps.dist-tag.outputs.TAG }}"
package/.releaserc CHANGED
@@ -59,7 +59,7 @@
59
59
  [
60
60
  "@semantic-release/exec",
61
61
  {
62
- "publishCmd": "echo \"${nextRelease.channel}\" > /tmp/dist-tag"
62
+ "publishCmd": "echo \"${nextRelease.channel || 'latest'}\" > /tmp/dist-tag"
63
63
  }
64
64
  ],
65
65
  [
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.17.3-prerelease.3](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.17.3-prerelease.2...v5.17.3-prerelease.3) (2026-08-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * address release workflow review comments 67ce8c3
9
+ * address second round of release workflow review comments 4a1c5f5
10
+ * default dist-tag to latest when semantic-release channel is null ce5a216
11
+
3
12
  ## [5.17.3-prerelease.2](https://github.com/genesiscommunitysuccess/blank-app-seed/compare/v5.17.3-prerelease.1...v5.17.3-prerelease.2) (2026-07-27)
4
13
 
5
14
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/blank-app-seed",
3
3
  "description": "Genesis Blank App Seed",
4
- "version": "5.17.3-prerelease.2",
4
+ "version": "5.17.3-prerelease.3",
5
5
  "license": "Apache-2.0",
6
6
  "scripts": {
7
7
  "release": "semantic-release"
@@ -1,50 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- workflow_dispatch:
5
- push:
6
- branches: [main, prerelease]
7
-
8
- jobs:
9
- release:
10
- runs-on: ubuntu-latest
11
- environment: deploy
12
- steps:
13
- - uses: actions/checkout@v4
14
- with:
15
- token: ${{secrets.GH_USER_TOKEN}}
16
-
17
- - name: Set up Node
18
- uses: actions/setup-node@v4
19
- with:
20
- node-version: 20
21
-
22
- - name: Release
23
- env:
24
- GH_TOKEN: ${{secrets.GH_USER_TOKEN}}
25
- run: |
26
- touch /tmp/dist-tag # create a blank file, so it's always there even if we don't do a release
27
- npm install
28
- npm run release
29
-
30
- - name: Set dist tag
31
- id: dist-tag
32
- run: |
33
- {
34
- echo 'DIST_TAG<<EOF'
35
- cat /tmp/dist-tag
36
- echo EOF
37
- } >> "$GITHUB_OUTPUT"
38
-
39
- - name: Generate .npmignore
40
- run: cp .gitignore .npmignore && echo '!.gitignore' >> .npmignore && cat .npmignore
41
-
42
- - name: NPM pack dry-run
43
- run: npm pack -dry
44
-
45
- - name: Publish
46
- uses: JS-DevTools/npm-publish@v3
47
- with:
48
- token: ${{secrets.NPM_TOKEN}}
49
- tag: ${{ steps.dist-tag.outputs.DIST_TAG }}
50
-