File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 9191 - test
9292 - verify-website
9393 if : github.event_name == 'push' && contains(github.ref, 'refs/tags/')
94+ permissions :
95+ id-token : write
96+ contents : read
9497 steps :
9598 - uses : actions/checkout@v3
9699 - name : Use Node.js
@@ -109,9 +112,14 @@ jobs:
109112 restore-keys : |
110113 ${{ runner.os }}-yarn-
111114 - run : yarn dev
112- - run : yarn publish
113- env :
114- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
115+ - run : |
116+ if [[ "$GITHUB_REF" =~ -alpha ]]; then
117+ npm publish --tag alpha
118+ elif [[ "$GITHUB_REF" =~ -beta ]]; then
119+ npm publish --tag beta
120+ else
121+ npm publish
122+ fi
115123 deploy :
116124 name : Deploy to GitHub Pages
117125 runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 11{
22 "name" : " react-accessible-dropdown-menu-hook" ,
3- "version" : " 4.0.0 " ,
3+ "version" : " 4.0.1 " ,
44 "description" : " A simple Hook for creating fully accessible dropdown menus in React" ,
55 "main" : " dist/use-dropdown-menu.js" ,
66 "types" : " dist/use-dropdown-menu.d.ts" ,
You can’t perform that action at this time.
0 commit comments