Skip to content

Commit 0bc6f0a

Browse files
authored
chore: fix gen2-migration release workflow (#14448)
chore: mid work
1 parent 1ccff22 commit 0bc6f0a

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/release-gen2-migration.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,35 @@ jobs:
1010
uses: actions/checkout@v3
1111
with:
1212
ref: gen2-migration
13-
- run: |
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v5
15+
with:
16+
node-version: 22.x
17+
- name: Install
18+
run: |
19+
node --version
20+
npm --version
1421
yarn install
22+
- name: Build
23+
run: |
1524
yarn build
25+
- name: Pack
26+
run: |
1627
cd packages/amplify-cli
1728
package_name="@aws-amplify/cli-internal-gen2-migration-experimental-alpha"
1829
latest_version=$(npm view ${package_name} version 2>/dev/null || echo "0.0.0")
1930
new_version=$(npx semver --increment minor ${latest_version})
2031
npm version ${new_version} --no-workspace-update --no-commit-hooks --no-git-tag-version --no-workspaces
2132
npm pkg set name=${package_name}
2233
npm pack
23-
NPM_TRUSTED_PUBLISHER=true npm publish
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v5
36+
with:
37+
node-version: 24.x
38+
- name: Publish
39+
run: |
40+
cd packages/amplify-cli
41+
npm --version
42+
npm publish
43+
env:
44+
NPM_TRUSTED_PUBLISHER: 'true'

0 commit comments

Comments
 (0)