Skip to content

Commit 37499ba

Browse files
committed
fix(ci,docs): address utoo migration review
1 parent 5c856b3 commit 37499ba

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
registry-url: 'https://registry.npmjs.org'
7373

7474
- name: Install dependencies
75-
run: ut install --from pnpm
75+
run: ut install --from pnpm || (sleep 5 && ut install --from pnpm) || (sleep 10 && ut install --from pnpm)
7676

7777
- name: Configure Git
7878
run: |
@@ -124,7 +124,7 @@ jobs:
124124
run: |
125125
echo "🧪 Running version bump in dry-run mode..."
126126
if [[ "${{ github.event.inputs.version_type }}" == pre* ]]; then
127-
node scripts/version.js ${{ github.event.inputs.version_type }} --prerelease-tag=${{ github.event.inputs.prerelease_tag }} --dry-run
127+
node scripts/version.js ${{ github.event.inputs.version_type }} --prerelease-tag=${{ github.event.inputs/prerelease_tag }} --dry-run
128128
else
129129
node scripts/version.js ${{ github.event.inputs.version_type }} --dry-run
130130
fi
@@ -155,7 +155,7 @@ jobs:
155155
if: ${{ github.event.inputs.dry_run == 'true' }}
156156
run: |
157157
if [[ "${{ github.event.inputs.version_type }}" == pre* ]]; then
158-
node scripts/publish.js --tag=${{ github.event.inputs.prerelease_tag }} --dry-run
158+
node scripts/publish.js --tag=${{ github.event.inputs/prerelease_tag }} --dry-run
159159
else
160160
node scripts/publish.js --tag=latest --dry-run
161161
fi
@@ -164,7 +164,7 @@ jobs:
164164
if: ${{ github.event.inputs.dry_run != 'true' }}
165165
run: |
166166
if [[ "${{ github.event.inputs.version_type }}" == pre* ]]; then
167-
node scripts/publish.js --tag=${{ github.event.inputs.prerelease_tag }} --provenance
167+
node scripts/publish.js --tag=${{ github.event.inputs/prerelease_tag }} --provenance
168168
else
169169
node scripts/publish.js --tag=latest --provenance
170170
fi
@@ -182,7 +182,7 @@ jobs:
182182
try {
183183
const existing = await github.rest.repos.getReleaseByTag({
184184
owner: context.repo.owner,
185-
repo: context.repo.repo,
185+
repo: context.repo,
186186
tag: tag,
187187
});
188188
core.info(`Release already exists: ${existing.data.html_url}`);
@@ -199,7 +199,7 @@ jobs:
199199
200200
const fs = require('fs');
201201
const packagesDirs = ['./packages', './tools', './plugins', './tegg/core', './tegg/plugin', './tegg/standalone'];
202-
for (const packagesDir of packagesDirs) {
202+
for (const packagesDir of packagesDirs) {
203203
if (!fs.existsSync(packagesDir)) continue;
204204
const packageFolders = fs.readdirSync(packagesDir);
205205
for (const folder of packageFolders) {
@@ -240,7 +240,7 @@ jobs:
240240
echo "## 🎉 Release Summary" >> $GITHUB_STEP_SUMMARY
241241
242242
if [ "${{ github.event.inputs.dry_run }}" == "true" ]; then
243-
echo "### 🧪 Dry Run Completed" >> $GITHUB_STEP_SUMMARY
243+
echo "### 🇪 Dry Run Completed" >> $GITHUB_STEP_SUMMARY
244244
echo "- Version bump: **${{ github.event.inputs.version_type }}**" >> $GITHUB_STEP_SUMMARY
245245
echo "- Branch: **${{ github.event.inputs.branch }}**" >> $GITHUB_STEP_SUMMARY
246246
if [[ "${{ github.event.inputs.version_type }}" == pre* ]]; then

packages/egg/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ Follow the commands listed below.
2323
```bash
2424
$ corepack enable utoo
2525
$ mkdir showcase && cd showcase
26-
$ npm init egg --type=simple # Optionally ut create egg --type=simple
26+
$ ut create egg@beta
27+
# Or with npm:
28+
$ npm init egg --type=simple
2729
$ ut install
2830
$ ut run dev
2931
$ open http://localhost:7001

0 commit comments

Comments
 (0)