@@ -234,17 +234,24 @@ rm -rf hello_world
234
234
----
235
235
nix-shell
236
236
----
237
+ . Set the new version in a temporary environment variable.
238
+ +
239
+ For example, replace `<n.n.n>` with a specific version number:
240
+ +
241
+ [source, nix-shell]
242
+ ----
243
+ export NEW_DFX_VERSION=<n.n.n>
244
+ ----
237
245
. Create a new branch for your changes by running the following commands:
238
246
+
239
247
[source, nix-shell]
240
248
----
241
- git switch -c <YOUR_NAME>/<BRANCH-FOR- NEW_DFX_VERSION>
249
+ git switch -c $USER/release-$ NEW_DFX_VERSION
242
250
----
243
251
. Update the `version` field for the following files:
244
252
+
245
253
....
246
254
`src/dfx/Cargo.toml`
247
- `src/agent/rust/Cargo.toml`
248
255
`src/ic_identity_manager/Cargo.toml`
249
256
....
250
257
. Apply these changes to `Cargo.lock` by running the following command:
@@ -253,19 +260,11 @@ git switch -c <YOUR_NAME>/<BRANCH-FOR-NEW_DFX_VERSION>
253
260
----
254
261
cargo build
255
262
----
256
- . Set the new version in a temporary environment variable.
257
- +
258
- For example, replace `<n.n.n>` with a specific version number:
259
- +
260
- [source, nix-shell]
261
- ----
262
- export NEW_DFX_VERSION=<n.n.n>
263
- ----
264
263
. Update the `@dfinity/agent` JavaScript package by running the following command:
265
264
+
266
265
[source, nix-shell]
267
266
----
268
- cd src/agent/javascript/ && npm version ${ NEW_DFX_VERSION}
267
+ cd src/agent/javascript/ && npm version $NEW_DFX_VERSION
269
268
----
270
269
. Navigate back to the root of sdk repo by running the following command:
271
270
+
@@ -277,7 +276,7 @@ cd ../../..
277
276
+
278
277
[source, nix-shell]
279
278
----
280
- cd src/bootstrap/ && npm version ${ NEW_DFX_VERSION}
279
+ cd src/bootstrap/ && npm version $NEW_DFX_VERSION
281
280
----
282
281
. Navigate back to the root of sdk repo by running the following command:
283
282
+
@@ -313,8 +312,8 @@ For example:
313
312
[source, bash]
314
313
----
315
314
git add --all
316
- git commit --signoff --message "chore: Release ` NEW_DFX_VERSION` "
317
- git push origin <YOUR_NAME>/<BRANCH-FOR- NEW_DFX_VERSION>
315
+ git commit --signoff --message "chore: Release $ NEW_DFX_VERSION"
316
+ git push origin $USER/release-$ NEW_DFX_VERSION
318
317
----
319
318
. After pushing, click the link in the console to go to your new branch in GitHub, then click *Create Pull Request*.
320
319
. Have the validator review and approve the PR.
@@ -348,7 +347,7 @@ git pull origin master --ff-only
348
347
+
349
348
[source, bash]
350
349
----
351
- git tag --annotate ${ NEW_DFX_VERSION} --message "Release: `${ NEW_DFX_VERSION}` "
350
+ git tag --annotate $NEW_DFX_VERSION --message "Release: $ NEW_DFX_VERSION"
352
351
----
353
352
. Verify the tag points to the correct version and includes annotation by running the following commands:
354
353
+
@@ -361,7 +360,7 @@ git describe --always
361
360
+
362
361
[source, bash]
363
362
----
364
- git push origin ${ NEW_DFX_VERSION}
363
+ git push origin $NEW_DFX_VERSION
365
364
----
366
365
+
367
366
CI will only publish `dfx` from the latest commit from the `stable` branch when that commit is tagged with a version.
0 commit comments