File tree Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Expand file tree Collapse file tree 3 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 1+ name : publish to npmjs
2+ on :
3+ release :
4+ types : [prereleased, released]
5+ jobs :
6+ build-and-publish :
7+ # prevents this action from running on forks
8+ if : github.repository == 'chimurai/http-proxy-middleware'
9+ runs-on : ubuntu-latest
10+ permissions :
11+ contents : read
12+ id-token : write
13+ steps :
14+ - uses : actions/checkout@v4
15+ - uses : actions/setup-node@v4
16+ with :
17+ node-version : ' 22.x'
18+ registry-url : ' https://registry.npmjs.org'
19+
20+ - name : Install Dependencies
21+ run : yarn install
22+
23+ - name : Publish to NPM (beta)
24+ if : ' github.event.release.prerelease'
25+ run : npm publish --provenance --access public --tag v2-beta
26+ env :
27+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
28+
29+ - name : Publish to NPM (stable)
30+ if : ' !github.event.release.prerelease'
31+ run : npm publish --provenance --access public --tag v2
32+ env :
33+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## [ v2.0.7] ( https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.7 )
4+
5+ - ci(github actions): add publish.yml
6+
37## [ v2.0.6] ( https://github.com/chimurai/http-proxy-middleware/releases/tag/v2.0.6 )
48
59- fix(proxyReqWs): catch socket errors ([ #763 ] ( https://github.com/chimurai/http-proxy-middleware/pull/763 ) )
Original file line number Diff line number Diff line change 11{
22 "name" : " http-proxy-middleware" ,
3- "version" : " 2.0.6 " ,
3+ "version" : " 2.0.7-beta.0 " ,
44 "description" : " The one-liner node.js proxy middleware for connect, express and browser-sync" ,
55 "main" : " dist/index.js" ,
66 "types" : " dist/index.d.ts" ,
You can’t perform that action at this time.
0 commit comments