Skip to content

refactor: inputValidator arg -> schema, IV generic type -> `Sch… #126

refactor: inputValidator arg -> schema, IV generic type -> `Sch…

refactor: inputValidator arg -> schema, IV generic type -> `Sch… #126

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
- alpha
- beta
- experimental
pull_request:
branches:
- "*"
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
- run: npm ci
- run: npm run lint -- --filter=next-safe-action
CD:
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/experimental' }}
runs-on: ubuntu-latest
needs: [CI]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "npm"
- run: npm ci
- run: npm run build -- --filter=next-safe-action
- name: Release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run deploy -- --filter=next-safe-action