Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ jobs:
- test
- verify-website
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Use Node.js
Expand All @@ -109,9 +112,14 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn dev
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: |
if [[ "$GITHUB_REF" =~ -alpha ]]; then
npm publish --tag alpha
elif [[ "$GITHUB_REF" =~ -beta ]]; then
npm publish --tag beta
else
npm publish
fi
deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-accessible-dropdown-menu-hook",
"version": "4.0.0",
"version": "4.0.1",
"description": "A simple Hook for creating fully accessible dropdown menus in React",
"main": "dist/use-dropdown-menu.js",
"types": "dist/use-dropdown-menu.d.ts",
Expand Down
Loading