chore(ci): fix failing build when deploying (#742) #35
This file contains 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 | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
# We do install instead of ci due to a bug in npm that doesn't | |
# properly handle optional dependencies in the lockfile when doing | |
# cross platform installs | |
# https://github.com/nearform/the-graphql-workshop/pull/742 | |
- run: npm install | |
- run: npm run build -- --base /the-graphql-workshop/ | |
- uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: dist |