|
72 | 72 | -f body="$ENHANCED_BODY" |
73 | 73 | fi |
74 | 74 | fi |
75 | | -
|
76 | | - update-lockfile: |
77 | | - name: Update lockfile on release PR |
78 | | - runs-on: ubuntu-latest |
79 | | - needs: release-pr |
80 | | - permissions: |
81 | | - contents: write |
82 | | - steps: |
83 | | - - name: Checkout release branch |
84 | | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
85 | | - with: |
86 | | - ref: changeset-release/main |
87 | | - |
88 | | - - name: Setup pnpm |
89 | | - uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0 |
90 | | - with: |
91 | | - version: 10.33.2 |
92 | | - |
93 | | - - name: Setup node |
94 | | - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 |
95 | | - with: |
96 | | - node-version: 20.20.0 |
97 | | - |
98 | | - - name: Install and update lockfile |
99 | | - run: pnpm install --no-frozen-lockfile |
100 | | - |
101 | | - - name: Clean up consumed .server-changes/ files |
102 | | - run: | |
103 | | - set -e |
104 | | - shopt -s nullglob |
105 | | - files=(.server-changes/*.md) |
106 | | - for f in "${files[@]}"; do |
107 | | - if [ "$(basename "$f")" != "README.md" ]; then |
108 | | - git rm --ignore-unmatch "$f" |
109 | | - fi |
110 | | - done |
111 | | -
|
112 | | - - name: Commit and push lockfile + server-changes cleanup |
113 | | - run: | |
114 | | - set -e |
115 | | - git config user.name "github-actions[bot]" |
116 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
117 | | - git add pnpm-lock.yaml |
118 | | - if ! git diff --cached --quiet; then |
119 | | - git commit -m "chore: update lockfile and clean up .server-changes/ for release" |
120 | | - git push origin changeset-release/main |
121 | | - else |
122 | | - echo "No changes to commit" |
123 | | - fi |
124 | | -
|
125 | | - bump-chart-version: |
126 | | - name: Bump Helm chart version on release PR |
127 | | - runs-on: ubuntu-latest |
128 | | - needs: update-lockfile |
129 | | - permissions: |
130 | | - contents: write |
131 | | - steps: |
132 | | - - name: Checkout release branch |
133 | | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
134 | | - with: |
135 | | - ref: changeset-release/main |
136 | | - |
137 | | - - name: Bump Chart.yaml |
138 | | - run: | |
139 | | - set -e |
140 | | - VERSION=$(jq -r '.version' packages/cli-v3/package.json) |
141 | | - sed -i "s/^version:.*/version: ${VERSION}/" ./hosting/k8s/helm/Chart.yaml |
142 | | - sed -i "s/^appVersion:.*/appVersion: v${VERSION}/" ./hosting/k8s/helm/Chart.yaml |
143 | | -
|
144 | | - - name: Commit and push Chart.yaml bump |
145 | | - run: | |
146 | | - set -e |
147 | | - git config user.name "github-actions[bot]" |
148 | | - git config user.email "github-actions[bot]@users.noreply.github.com" |
149 | | - git add hosting/k8s/helm/Chart.yaml |
150 | | - if ! git diff --cached --quiet; then |
151 | | - git commit -m "chore: bump helm chart version for release" |
152 | | - git push origin changeset-release/main |
153 | | - else |
154 | | - echo "Chart.yaml already at target version, no-op" |
155 | | - fi |
0 commit comments