File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2828    name : Release 
2929    if : github.repository == 'web-infra-dev/rslib' && github.event_name == 'workflow_dispatch' 
3030    runs-on : ubuntu-latest 
31-     environment : production 
31+     environment : npm 
3232    steps :
3333      - name : Checkout 
3434        uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683  #  v4
@@ -47,12 +47,15 @@ jobs:
4747          node-version : 22 
4848          cache : ' pnpm' 
4949
50+       #  Update npm to the latest version to enable OIDC
51+       - name : Update npm 
52+         run : | 
53+           npm install -g npm@latest 
54+           npm --version 
55+ 
5056       - name : Install Dependencies 
5157        run : pnpm install 
5258
5359      - name : Publish to npm 
54-         env :
55-           NPM_TOKEN : ${{ secrets.RSLIB_NPM_TOKEN }} 
5660        run : | 
57-           npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" 
5861          pnpm -r publish --tag ${{ github.event.inputs.npm_tag }} --publish-branch ${{ github.event.inputs.branch }} 
Original file line number Diff line number Diff line change 8080  },
8181  "publishConfig" : {
8282    "access" : " public"  ,
83-     "provenance" : true ,
8483    "registry" : " https://registry.npmjs.org/" 
8584  }
8685}
Original file line number Diff line number Diff line change 4646  },
4747  "publishConfig" : {
4848    "access" : " public"  ,
49-     "provenance" : true ,
5049    "registry" : " https://registry.npmjs.org/" 
5150  }
5251}
Original file line number Diff line number Diff line change 6262  },
6363  "publishConfig" : {
6464    "access" : " public"  ,
65-     "provenance" : true ,
6665    "registry" : " https://registry.npmjs.org/" 
6766  }
6867}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments