File tree Expand file tree Collapse file tree 11 files changed +54
-25
lines changed Expand file tree Collapse file tree 11 files changed +54
-25
lines changed Original file line number Diff line number Diff line change 1111
1212jobs :
1313 build :
14-
1514 runs-on : ubuntu-latest
1615
1716 strategy :
1817 matrix :
19- node-version : [18 .x, 20 .x, 22.x]
18+ node-version : [20 .x, 21 .x, 22.x]
2019 # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
2120
2221 steps :
2928 - run : npm ci
3029 - run : npm run build --if-present
3130 - run : npm test
31+
32+ publish :
33+ runs-on : ubuntu-latest
34+ needs : build # Wait for build to complete
35+ if : github.ref == 'refs/heads/master' && github.event_name == 'push'
36+
37+ steps :
38+ - uses : actions/checkout@v4
39+ - name : Use Node.js 20.x
40+ uses : actions/setup-node@v4
41+ with :
42+ node-version : " 20.x"
43+ cache : " npm"
44+ - run : npm install
45+ - run : npm run build
46+
47+ - name : Authenticate with npm
48+ env :
49+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
50+ run : echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
51+
52+ - name : Run npm publish dry run
53+ run : npm run npm:publish:dry-run
54+
55+ - name : Publish to npm
56+ env :
57+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
58+ run : npm run npm:publish
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ npm i @puremvc/puremvc-typescript-multicore-framework
2424* [ React Native] ( https://en.wikipedia.org/wiki/React_Native )
2525
2626## Status
27- Production - [ Version 2.0.0 ] ( https://github.com/PureMVC/puremvc-typescript-multicore-framework/blob/master/VERSION )
27+ Production - [ Version 2.0.1 ] ( https://github.com/PureMVC/puremvc-typescript-multicore-framework/blob/master/VERSION )
2828
2929## License
3030* PureMVC MultiCore Framework for TypeScript - Copyright © 2024 [ Saad Shams] ( https://www.linkedin.com/in/muizz )
Original file line number Diff line number Diff line change 11PureMVC MultiCore Framework for TypeScript
22--------------------------------------------------------------------------
3- Release Date: 8/28 /24
3+ Release Date: 11/03 /24
44 Platform: TypeScript
55 Version: 2
66 Revision: 0
7- Minor: 0
7+ Minor: 1
88 Authors: Saad Shams <saad.shams@puremvc.org>
99--------------------------------------------------------------------------
10- 2.0 - Brand new implementation of ported code, equivalent to AS3 MultiCore Version 1.0.5.
10+ 2.0.0 - Brand new implementation of ported code, equivalent to AS3 MultiCore Version 1.0.5.
11+ 2.0.1 - CI/CD Pipeline
Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ class Mediator extends Notifier_1.Notifier {
3030 this . _viewComponent = viewComponent ;
3131 }
3232 /**
33- * Called by the View when the Mediator is registered *
33+ * Called by the View when the Mediator is registered
3434 *
3535 * @returns {void }
3636 */
3737 onRegister ( ) {
3838 }
3939 /**
40- * Called by the View when the Mediator is removed *
40+ * Called by the View when the Mediator is removed
4141 *
4242 * @returns {void }
4343 */
Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ export class Mediator extends Notifier {
2727 this . _viewComponent = viewComponent ;
2828 }
2929 /**
30- * Called by the View when the Mediator is registered *
30+ * Called by the View when the Mediator is registered
3131 *
3232 * @returns {void }
3333 */
3434 onRegister ( ) {
3535 }
3636 /**
37- * Called by the View when the Mediator is removed *
37+ * Called by the View when the Mediator is removed
3838 *
3939 * @returns {void }
4040 */
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ export declare class Mediator extends Notifier implements IMediator {
2727 */
2828 constructor ( name ?: string , viewComponent ?: any ) ;
2929 /**
30- * Called by the View when the Mediator is registered *
30+ * Called by the View when the Mediator is registered
3131 *
3232 * @returns {void }
3333 */
3434 onRegister ( ) : void ;
3535 /**
36- * Called by the View when the Mediator is removed *
36+ * Called by the View when the Mediator is removed
3737 *
3838 * @returns {void }
3939 */
Original file line number Diff line number Diff line change 11{
22 "name" : " @puremvc/puremvc-typescript-multicore-framework" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " PureMVC MultiCore Framework for TypeScript" ,
55 "main" : " bin/cjs/index.js" ,
66 "module" : " bin/esm/index.js" ,
5959 "jest" : " ^29.7.0" ,
6060 "ts-jest" : " ^29.1.1" ,
6161 "typedoc" : " ^0.26.6" ,
62- "typescript" : " ^5.3.2 "
62+ "typescript" : " ^5.6.3 "
6363 }
6464}
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ export type {IFacade} from "./interfaces/IFacade";
1414export type { IMediator } from "./interfaces/IMediator" ;
1515export type { INotification } from "./interfaces/INotification" ;
1616export type { INotifier } from "./interfaces/INotifier" ;
17- export type { IObserver } from "./interfaces/IObserver"
18- export type { IProxy } from "./interfaces/IProxy"
17+ export type { IObserver } from "./interfaces/IObserver" ;
18+ export type { IProxy } from "./interfaces/IProxy" ;
1919
2020export { Controller } from "./core/Controller" ;
2121export { Model } from "./core/Model" ;
Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ export class MacroCommand extends SimpleCommand {
109109 const factory : ( ( ) => ICommand ) | undefined = this . subCommands . shift ( ) ;
110110 const command : ICommand | undefined = factory ?.( ) ;
111111 if ( command ) {
112- command . initializeNotifier ( this . multitonKey ) ;
113- command . execute ( notification ) ;
112+ command . initializeNotifier ( this . multitonKey ) ;
113+ command . execute ( notification ) ;
114114 }
115115 }
116116 }
You can’t perform that action at this time.
0 commit comments