File tree 4 files changed +35
-4
lines changed
4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 14
14
strategy :
15
15
matrix :
16
16
node-version : [19.x, 20.x, 21.x]
17
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
18
17
19
18
steps :
20
19
- uses : actions/checkout@v3
29
28
- run : sudo apt-get install xvfb
30
29
- run : xvfb-run --auto-servernum npm run test:chrome
31
30
- run : xvfb-run --auto-servernum npm run test:firefox
31
+
32
+ # Separate job for publishing to npm
33
+ publish :
34
+ runs-on : ubuntu-latest
35
+ needs : build # Wait for build to complete
36
+ if : github.ref == 'refs/heads/master' && github.event_name == 'push'
37
+
38
+ steps :
39
+ - uses : actions/checkout@v3
40
+ - name : Use Node.js 20.x
41
+ uses : actions/setup-node@v3
42
+ with :
43
+ node-version : " 20.x"
44
+ cache : " npm"
45
+ - run : npm install
46
+ - run : npm run build
47
+
48
+ - name : Publish to npm dry-run
49
+ env :
50
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
51
+ run : |
52
+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
53
+ npm publish --dry-run
54
+
55
+ - name : Publish to npm
56
+ if : github.ref == 'refs/heads/master' && github.event_name == 'push'
57
+ env :
58
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
59
+ run : |
60
+ echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
61
+ npm publish
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ npm i @puremvc/puremvc-js-multicore-framework
24
24
* [ React Native] ( https://en.wikipedia.org/wiki/React_Native )
25
25
26
26
## Status
27
- Production - [ Version 2.0.8 ] ( https://github.com/PureMVC/puremvc-js-multicore-framework/blob/master/VERSION )
27
+ Production - [ Version 2.0.9 ] ( https://github.com/PureMVC/puremvc-js-multicore-framework/blob/master/VERSION )
28
28
29
29
#### Documentation
30
30
- https://jsdoc.app/about-commandline.html
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Release Date: 9/4/24
4
4
Platform: JavaScript
5
5
Version: 2
6
6
Revision: 0
7
- Minor: 8
7
+ Minor: 9
8
8
Authors: Saad Shams <
[email protected] >
9
9
10
10
@@ -18,3 +18,4 @@ Release Date: 9/4/24
18
18
2.0.6 - NPM package bundling the ESM/CommonJS support
19
19
2.0.7 - Finally? NPM bundling
20
20
2.0.8 - CI/CD Pipeline
21
+ 2.0.9 - CI/CD Integrating Automated Tokens
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @puremvc/puremvc-js-multicore-framework" ,
3
- "version" : " 2.0.8 " ,
3
+ "version" : " 2.0.9 " ,
4
4
"description" : " PureMVC MultiCore Framework for JavaScript" ,
5
5
"type" : " module" ,
6
6
"main" : " bin/cjs/index.cjs" ,
You can’t perform that action at this time.
0 commit comments