fix: update npm package links to point to the latest version #48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Docusaurus site to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - master # Adjust if your default branch is different | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v2 | |
| with: | |
| node-version: '18' # Ensure Node.js version is 18 or higher | |
| - name: Install dependencies | |
| run: npm install | |
| working-directory: ./docs | |
| - name: Build Docusaurus site | |
| run: npm run build | |
| working-directory: ./docs | |
| env: | |
| ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} | |
| ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | |
| ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }} | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| personal_token: ${{ secrets.ACTIONS_DEPLOY_ACCESS_TOKEN }} | |
| publish_dir: ./docs/build | |
| external_repository: jpranays/react-fast-hooks # Ensure this is your repo name | |
| force_orphan: true |