chore(deps): bump nanoid from 3.3.7 to 3.3.8 in /site (#1373) #325
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: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 20.x | |
- uses: webfactory/ssh-agent@v0.5.0 | |
with: | |
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }} | |
- name: Release to GitHub Pages | |
env: | |
DEPLOYMENT_BRANCH: main | |
GH_EMAIL: ${{ secrets.GH_EMAIL }} | |
GH_NAME: ${{ secrets.GH_NAME }} | |
GIT_USER: ${{ secrets.GH_NAME }} | |
USE_SSH: true | |
run: | | |
npm ci | |
git config --global user.name "${GH_NAME}" | |
git config --global user.email "${GH_EMAIL}" | |
cd site | |
npm install | |
npm run deploy |