@@ -349,7 +349,34 @@ e.g: `merge: P010-1 (#1)`
349
349
350
350
## Releasing
351
351
352
- ** TODO** : Update documentation.
352
+ This repository is configured to release a new version for a workspace when a
353
+ Github Release is published. Any member with push access can create a release.
354
+
355
+ > Note: Publishing is executed via the
356
+ > [ Continuous Deployment] ( ./.github/workflows/continous-deployment.yml )
357
+ > workflow. This is so invalid or malicious versions cannot be released by any
358
+ > maintainer without merging those changes into ` main ` first.
359
+
360
+ Before cutting a new release, the following steps must be completed:
361
+
362
+ - create a new ` release/* ` branch
363
+ - where
` * ` is
` <package.json#name-no-scope>@<version> ` . e.g:
` [email protected] `
364
+ - decide what version bump this release needs (major, minor, patch)
365
+ - versioning
366
+ - ` yarn release:node ` (determines [ bumps based on commits] [ 17 ] )
367
+ - ` yarn release:node --release-as major `
368
+ - ` yarn release:node --release-as minor `
369
+ - ` yarn release:node --release-as patch `
370
+ - a new release will be drafted
371
+ - a new pull request is opened from ` next ` into ` main `
372
+ - the PR should be titled ` release: <tag-prefix>@<x>.<x>.<x> `
373
+ - after review, ** create a merge commit** : ` release: <tag-prefix>@<x>.<x>.<x> `
374
+ - after the PR is merged, a maintainer will publish the drafted released to
375
+ trigger the Continuous Deployment workflow
376
+ - the maintainer who merged the release PR should wait and see if the workflow
377
+ successfully publishes the workspace project(s) to the GitHub Package Registry
378
+ - all issues labelled ` status:merged ` released under ` <tag-prefix>@<x>.<x>.<x> `
379
+ should be closed and have the label ` status:released ` added
353
380
354
381
[ 1 ] : https://www.atlassian.com/software/jira
355
382
[ 2 ] : https://yarnpkg.com/getting-started/migration
@@ -366,3 +393,6 @@ e.g: `merge: P010-1 (#1)`
366
393
[ 13 ] : https://jestjs.io
367
394
[ 14 ] : https://jestjs.io/docs/api#describeskipname-fn
368
395
[ 15 ] : https://jestjs.io/docs/api#testskipname-fn
396
+ [ 16] :
397
+ https://docs.github.com/en/actions/reference/events-that-trigger-workflows#release
398
+ [ 17 ] : https://www.conventionalcommits.org/en/v1.0.0
0 commit comments