File tree Expand file tree Collapse file tree 2 files changed +9
-21
lines changed
Expand file tree Collapse file tree 2 files changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -39,17 +39,18 @@ jobs:
3939 - name : Test
4040 run : yarn lint && yarn test
4141
42+ - name : Set up Node.js for publishing
43+ uses : actions/setup-node@v4
44+ with :
45+ node-version : 20
46+ registry-url : ' https://registry.npmjs.org'
47+
4248 - name : Deploy to NPM
4349 if : github.repository_owner == 'Authress-Engineering' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
44- run : npm publish --access public
45- env :
46- NODE_AUTH_TOKEN : ${{ secrets.NODE_AUTH_TOKEN }}
50+ run : |
51+ 52+ npm publish --access public
4753
48- - name : After build
49- if : github.repository_owner == 'Authress-Engineering' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
50- env :
51- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52- run : node make.js after_build
5354 - name : Create Github Release and Tag
5455 if : github.repository_owner == 'Authress-Engineering' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
5556 run : |
Original file line number Diff line number Diff line change @@ -46,19 +46,6 @@ commander
4646 console . log ( '' ) ;
4747 } ) ;
4848
49- /**
50- * After Build
51- */
52- commander
53- . command ( 'after_build' )
54- . description ( 'Publishes git tags and reports failures.' )
55- . action ( ( ) => {
56- const package_metadata = require ( './package.json' ) ;
57- console . log ( 'After build package %s (%s)' , package_metadata . name , version ) ;
58- console . log ( '' ) ;
59- // githubActionsRunner.MergeDownstream('release/', 'main');
60- } ) ;
61-
6249commander . on ( '*' , ( ) => {
6350 if ( commander . args . join ( ' ' ) === 'tests/**/*.js' ) {
6451 return ;
You can’t perform that action at this time.
0 commit comments