chore(deps): bump nanoid from 3.3.7 to 3.3.8 #320
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: | |
workflow_dispatch: | |
push: | |
branches: main | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
# used to centralize the node version across workflows | |
# refs https://arinco.com.au/blog/github-actions-share-environment-variables-across-workflows | |
# refs https://github.com/marketplace/actions/set-environment-variables | |
- name: Set Environment Variables | |
uses: tw3lveparsecs/[email protected] | |
with: | |
envFilePath: ./envvars.for.actions | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: 'npm' | |
- name: Install | |
run: npm install | |
- name: Build 🔧 | |
env: | |
NODE_OPTIONS: --openssl-legacy-provider | |
run: npm run build | |
- name: Deploy 🚀 | |
if: github.ref == 'refs/heads/main' | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: build |