Ensure latest act-tools is installed, not the one that may be pinned … #310
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
| # This workflow runs when a commit lands in develop | |
| name: wai-deploy | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| jobs: | |
| dispatch: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| cache: npm | |
| - uses: actions/cache@v5 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-node- | |
| - run: git config --global url."https://github.com/".insteadOf ssh://git@github.com/ | |
| - name: Install dependencies (including act-tools dev dependencies) | |
| run: npm i --include=dev | |
| - name: Configure git | |
| run: | | |
| git config --global url."https://${{ secrets.WAI_GIT_NAME }}:${{ secrets.WAI_GIT_ACCESS_TOKEN }}@github.com".insteadOf "https://github.com" | |
| git config --global user.name "${{ secrets.WAI_GIT_NAME }}" | |
| git config --global user.email "${{ secrets.WAI_GIT_EMAIL }}" | |
| - name: Build and deploy WAI update | |
| run: npm run build:wai |