Skip to content

Update project-ideas.md #52

Update project-ideas.md

Update project-ideas.md #52

name: Test pull requests and generate preview link
on:
pull_request:
branches: [main]
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 16.x
cache: npm
- name: Test build
run: |
npm install --frozen-lockfile
npm run build
- name: Installing Surge
run: npm i -g surge
- name: Deploying on Surge
env:
SURGE_LOGIN: [email protected]
SURGE_TOKEN: aadbfcb04e3dae63bb3561ca05f93eb1
DEPLOY_DOMAIN: https://pr-${{ github.event.number }}-sef-handbook.surge.sh
run: surge ./build $DEPLOY_DOMAIN --token $SURGE_TOKEN