Skip to content

Commit 053e002

Browse files
committed
2 parents e30fad3 + 92c9445 commit 053e002

6 files changed

Lines changed: 97 additions & 24 deletions

File tree

.github/renovate.json5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
matchFileNames: ['frameworks/angular-slickgrid/**', 'demos/angular/**'],
2121
groupName: 'Angular dependencies',
2222
ignoreDeps: ['typescript'],
23+
major: {
24+
enabled: false,
25+
},
2326
},
2427
{
2528
description: 'Group all Aurelia dependencies',

.github/workflows/publish-npm-latest.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,32 @@ jobs:
119119
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
120120
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
121121
NPM_CONFIG_PROVENANCE: true
122-
HUSKY: 0
122+
shell: bash
123123
run: |
124-
pnpm exec lerna publish from-package --force-publish --yes --otp ${{ steps.wait-for-secrets.outputs.OTP }}
124+
# Attempt to publish all packages
125+
pnpm exec lerna publish from-package --force-publish --yes --otp ${{ steps.wait-for-secrets.outputs.OTP }} || {
126+
# Check for EOTP error
127+
if [[ "$output" == *"EOTP"* ]]; then
128+
echo "::error title=OTP Expired::OTP has expired. Please provide a new OTP."
129+
# Prompt for a new OTP
130+
OTP=$(\
131+
uses: step-security/wait-for-secrets@v1 \
132+
secrets: |
133+
OTP:
134+
name: 'New OTP to publish package'
135+
description: 'OTP from authenticator app' \
136+
)
137+
# Retry the publish command with the new OTP
138+
pnpm exec lerna publish from-package --force-publish --yes --otp $OTP
139+
# Check for version conflict error (replace with your actual check)
140+
elif [[ "$output" == *"version conflict"* ]]; then
141+
echo "::warning title=Version Conflict::A package has a version conflict. Skipping."
142+
else
143+
# Fail the workflow for other errors
144+
echo "::error title=Publish Failed::Publishing failed with an unexpected error."
145+
exit 1
146+
fi
147+
}
125148
126149
- name: Website Dev Build
127150
run: pnpm build:dev

.github/workflows/publish-npm-prerelease.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,29 @@ jobs:
168168
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
169169
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
170170
NPM_CONFIG_PROVENANCE: true
171-
HUSKY: 0
171+
shell: bash
172172
run: |
173-
pnpm exec lerna publish from-package --force-publish --dist-tag ${{ inputs.tag }} --yes --otp ${{ steps.wait-for-secrets.outputs.OTP }}
173+
# Attempt to publish all packages
174+
pnpm exec lerna publish from-package --force-publish --dist-tag ${{ inputs.tag }} --yes --otp ${{ steps.wait-for-secrets.outputs.OTP }} || {
175+
# Check for EOTP error
176+
if [[ "$output" == *"EOTP"* ]]; then
177+
echo "::error title=OTP Expired::OTP has expired. Please provide a new OTP."
178+
# Prompt for a new OTP
179+
OTP=$(\
180+
uses: step-security/wait-for-secrets@v1 \
181+
secrets: |
182+
OTP:
183+
name: 'New OTP to publish package'
184+
description: 'OTP from authenticator app' \
185+
)
186+
# Retry the publish command with the new OTP
187+
pnpm exec lerna publish from-package --force-publish --dist-tag ${{ inputs.tag }} --yes --otp $OTP
188+
# Check for version conflict error (replace with your actual check)
189+
elif [[ "$output" == *"version conflict"* ]]; then
190+
echo "::warning title=Version Conflict::A package has a version conflict. Skipping."
191+
else
192+
# Fail the workflow for other errors
193+
echo "::error title=Publish Failed::Publishing failed with an unexpected error."
194+
exit 1
195+
fi
196+
}

.github/workflows/publish-npm-prompt.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,37 @@ jobs:
113113
description: 'OTP from authenticator app'
114114
115115
- name: Lerna Publish 📦
116+
if: ${{ inputs.dryrun != true }}
116117
env:
117118
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
118119
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
119120
NPM_CONFIG_PROVENANCE: true
120-
HUSKY: 0
121+
shell: bash
121122
run: |
122-
pnpm exec lerna publish from-package --force-publish --yes --otp ${{ steps.wait-for-secrets.outputs.OTP }}
123+
# Attempt to publish all packages
124+
pnpm exec lerna publish from-package --force-publish --yes --otp ${{ steps.wait-for-secrets.outputs.OTP }} || {
125+
# Check for EOTP error
126+
if [[ "$output" == *"EOTP"* ]]; then
127+
echo "::error title=OTP Expired::OTP has expired. Please provide a new OTP."
128+
# Prompt for a new OTP
129+
OTP=$(\
130+
uses: step-security/wait-for-secrets@v1 \
131+
secrets: |
132+
OTP:
133+
name: 'New OTP to publish package'
134+
description: 'OTP from authenticator app' \
135+
)
136+
# Retry the publish command with the new OTP
137+
pnpm exec lerna publish from-package --force-publish --yes --otp $OTP
138+
# Check for version conflict error (replace with your actual check)
139+
elif [[ "$output" == *"version conflict"* ]]; then
140+
echo "::warning title=Version Conflict::A package has a version conflict. Skipping."
141+
else
142+
# Fail the workflow for other errors
143+
echo "::error title=Publish Failed::Publishing failed with an unexpected error."
144+
exit 1
145+
fi
146+
}
123147
124148
- name: Website Dev Build
125149
run: pnpm build:dev

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
77
## [9.0.0](https://github.com/ghiscoding/slickgrid-universal/compare/v5.14.0...v9.0.0) (2025-05-10)
88

99
> [!NOTE]
10-
> #### Follow the [Migration to 9.0](https://ghiscoding.gitbook.io/slickgrid-universal/migrations/migration-to-9.x) for all the changes and take a look at the [v9.0.0](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v9.0.0) release for the announcement and quick info.
10+
> ### Please visit the [v9.0.0](https://github.com/ghiscoding/slickgrid-universal/releases/tag/v9.0.0) GitHub release for more details about the migration.
1111
1212
### ⚠ BREAKING CHANGES
1313

0 commit comments

Comments
 (0)