Skip to content

ci(.github): split out steps into separate actions, consolidate push … #1

ci(.github): split out steps into separate actions, consolidate push …

ci(.github): split out steps into separate actions, consolidate push … #1

Workflow file for this run

name: CICD Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
build-and-test:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [20]
pnpm-version: [8]
steps:
- name: Checkout Code
uses: waldronmatt/groundwork/.github/actions/checkout.yml
- name: Setup Node.js
uses: waldronmatt/groundwork/.github/actions/setup-node.yml
with:
node-version: ${{ matrix.node-version }}
- name: Setup pnpm and Cache
uses: waldronmatt/groundwork/.github/actions/setup-pnpm.yml
with:
pnpm-version: ${{ matrix.pnpm-version }}
- name: Install Playwright and Dependencies
uses: waldronmatt/groundwork/.github/actions/install-deps.yml
- name: Run NX Affected Commands
uses: waldronmatt/groundwork/.github/actions/run-affected.yml
- name: Publish Packages
if: github.event_name == 'push'
uses: waldronmatt/groundwork/.github/actions/publish.yml
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
npm-token: ${{ secrets.NPM_TOKEN }}