-
Notifications
You must be signed in to change notification settings - Fork 819
49 lines (47 loc) · 1.32 KB
/
release-gen2-migration.yml
File metadata and controls
49 lines (47 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release Gen2 Migration
on:
workflow_dispatch: {}
permissions:
contents: read
id-token: write
jobs:
release:
runs-on: ubuntu-latest
environment: release-gen2-migration
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: gen2-migration
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 22.x
- name: Install
run: |
node --version
npm --version
yarn install
- name: Build
run: |
yarn build
- name: Pack
run: |
cd packages/amplify-cli
package_name="@aws-amplify/cli-internal-gen2-migration-experimental-alpha"
latest_version=$(npm view ${package_name} version 2>/dev/null || echo "0.0.0")
new_version=$(npx semver --increment minor ${latest_version})
npm version ${new_version} --no-workspace-update --no-commit-hooks --no-git-tag-version --no-workspaces
npm pkg set name=${package_name}
npm pack
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 24.x
- name: Publish
run: |
cd packages/amplify-cli
npm --version
npm publish
env:
NPM_TRUSTED_PUBLISHER: 'true'