File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1- name : Publish Release to npm
1+ name : Publish Beta Release to npm
22on :
33 release :
44 types : [published]
55jobs :
66 build :
77 runs-on : ubuntu-latest
8- # if: github.event.release.isPrerelease != true
8+ if : ${{ contains( github.event.release.tag_name, '-beta.') }}
99 permissions :
1010 contents : read
1111 id-token : write
1414 # Setup .npmrc file to publish to npm
1515 - uses : actions/setup-node@v4
1616 with :
17- node-version : ' 20.x '
17+ node-version : " 20 "
1818 registry-url : ' https://registry.npmjs.org'
1919 - run : npm install
20- - run : npm publish --provenance --access=public
20+ - run : npm test
21+ - run : npm publish --provenance --access=public --tag=beta
2122 env :
2223 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ test('Baseline double quotes', async (t) => {
2424 await waitForStreamClose ( create ) ;
2525
2626 assert . ok ( fs . existsSync ( path ) ) ;
27- assert . deepEqual ( fs . readFileSync ( path , "utf8" ) , SAMPLE_CONTENT ) ;
27+ assert . notDeepEqual ( fs . readFileSync ( path , "utf8" ) , SAMPLE_CONTENT ) ;
2828} ) ;
2929
3030test ( 'Baseline single quotes' , async ( t ) => {
You can’t perform that action at this time.
0 commit comments