File tree 11 files changed +54
-25
lines changed
11 files changed +54
-25
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
build :
14
-
15
14
runs-on : ubuntu-latest
16
15
17
16
strategy :
18
17
matrix :
19
- node-version : [18 .x, 20 .x, 22.x]
18
+ node-version : [20 .x, 21 .x, 22.x]
20
19
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21
20
22
21
steps :
29
28
- run : npm ci
30
29
- run : npm run build --if-present
31
30
- 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
24
24
* [ React Native] ( https://en.wikipedia.org/wiki/React_Native )
25
25
26
26
## 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 )
28
28
29
29
## License
30
30
* 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 1
1
PureMVC MultiCore Framework for TypeScript
2
2
--------------------------------------------------------------------------
3
- Release Date: 8/28 /24
3
+ Release Date: 11/03 /24
4
4
Platform: TypeScript
5
5
Version: 2
6
6
Revision: 0
7
- Minor: 0
7
+ Minor: 1
8
8
Authors: Saad Shams <
[email protected] >
9
9
--------------------------------------------------------------------------
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 {
30
30
this . _viewComponent = viewComponent ;
31
31
}
32
32
/**
33
- * Called by the View when the Mediator is registered *
33
+ * Called by the View when the Mediator is registered
34
34
*
35
35
* @returns {void }
36
36
*/
37
37
onRegister ( ) {
38
38
}
39
39
/**
40
- * Called by the View when the Mediator is removed *
40
+ * Called by the View when the Mediator is removed
41
41
*
42
42
* @returns {void }
43
43
*/
Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ export class Mediator extends Notifier {
27
27
this . _viewComponent = viewComponent ;
28
28
}
29
29
/**
30
- * Called by the View when the Mediator is registered *
30
+ * Called by the View when the Mediator is registered
31
31
*
32
32
* @returns {void }
33
33
*/
34
34
onRegister ( ) {
35
35
}
36
36
/**
37
- * Called by the View when the Mediator is removed *
37
+ * Called by the View when the Mediator is removed
38
38
*
39
39
* @returns {void }
40
40
*/
Original file line number Diff line number Diff line change @@ -27,13 +27,13 @@ export declare class Mediator extends Notifier implements IMediator {
27
27
*/
28
28
constructor ( name ?: string , viewComponent ?: any ) ;
29
29
/**
30
- * Called by the View when the Mediator is registered *
30
+ * Called by the View when the Mediator is registered
31
31
*
32
32
* @returns {void }
33
33
*/
34
34
onRegister ( ) : void ;
35
35
/**
36
- * Called by the View when the Mediator is removed *
36
+ * Called by the View when the Mediator is removed
37
37
*
38
38
* @returns {void }
39
39
*/
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @puremvc/puremvc-typescript-multicore-framework" ,
3
- "version" : " 2.0.0 " ,
3
+ "version" : " 2.0.1 " ,
4
4
"description" : " PureMVC MultiCore Framework for TypeScript" ,
5
5
"main" : " bin/cjs/index.js" ,
6
6
"module" : " bin/esm/index.js" ,
59
59
"jest" : " ^29.7.0" ,
60
60
"ts-jest" : " ^29.1.1" ,
61
61
"typedoc" : " ^0.26.6" ,
62
- "typescript" : " ^5.3.2 "
62
+ "typescript" : " ^5.6.3 "
63
63
}
64
64
}
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ export type {IFacade} from "./interfaces/IFacade";
14
14
export type { IMediator } from "./interfaces/IMediator" ;
15
15
export type { INotification } from "./interfaces/INotification" ;
16
16
export 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" ;
19
19
20
20
export { Controller } from "./core/Controller" ;
21
21
export { Model } from "./core/Model" ;
Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ export class MacroCommand extends SimpleCommand {
109
109
const factory : ( ( ) => ICommand ) | undefined = this . subCommands . shift ( ) ;
110
110
const command : ICommand | undefined = factory ?.( ) ;
111
111
if ( command ) {
112
- command . initializeNotifier ( this . multitonKey ) ;
113
- command . execute ( notification ) ;
112
+ command . initializeNotifier ( this . multitonKey ) ;
113
+ command . execute ( notification ) ;
114
114
}
115
115
}
116
116
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export class Mediator extends Notifier implements IMediator {
45
45
}
46
46
47
47
/**
48
- * Called by the View when the Mediator is registered *
48
+ * Called by the View when the Mediator is registered
49
49
*
50
50
* @returns {void }
51
51
*/
@@ -54,7 +54,7 @@ export class Mediator extends Notifier implements IMediator {
54
54
}
55
55
56
56
/**
57
- * Called by the View when the Mediator is removed *
57
+ * Called by the View when the Mediator is removed
58
58
*
59
59
* @returns {void }
60
60
*/
You can’t perform that action at this time.
0 commit comments