Skip to content

Merge pull request #46 from TheEdoRan/alpha #204

Merge pull request #46 from TheEdoRan/alpha

Merge pull request #46 from TheEdoRan/alpha #204

Workflow file for this run

name: CI/CD
on:
push:
branches:
- main
- alpha
- beta
- 4.x
pull_request:
branches:
- "*"
jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
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/4.x' }}
runs-on: ubuntu-latest
needs: [CI]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
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