Bump path-to-regexp from 6.2.2 to 6.3.0 #56
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: "Node.js CI" | |
on: | |
pull_request: | |
branches: | |
- "main" | |
push: | |
branches: | |
- "main" | |
jobs: | |
check: | |
runs-on: "ubuntu-22.04" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-node@v4" | |
with: | |
cache: "npm" | |
node-version: "20" | |
- run: "npm ci" | |
- run: "npm run lint" | |
- run: "npm run test:cover" | |
- run: "npm run build" | |
- uses: "actions/upload-artifact@v4" | |
with: | |
if-no-files-found: "error" | |
name: "build-output" | |
path: "lib/" | |
deploy: | |
needs: | |
- "check" | |
if: "github.ref == 'refs/heads/main'" | |
runs-on: "ubuntu-22.04" | |
steps: | |
- uses: "actions/checkout@v4" | |
- uses: "actions/setup-node@v4" | |
with: | |
cache: "npm" | |
node-version: "20" | |
- run: "npm ci --omit dev" | |
- uses: "actions/download-artifact@v4" | |
with: | |
name: "build-output" | |
path: "lib/" | |
- run: "npm install --global netlify-cli" | |
- run: "netlify deploy --dir . --prod true" | |
env: | |
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |