From 96610a4ab9ea7954ac926a532fda18f9bc58686d Mon Sep 17 00:00:00 2001 From: Luke Fritz Date: Wed, 9 Nov 2022 00:25:10 -0600 Subject: [PATCH] Move to reusable actions workflows (patch) --- .github/workflows/cd.yaml | 22 ++++++---------------- .github/workflows/ci.yaml | 14 ++------------ 2 files changed, 8 insertions(+), 28 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index aea047d..1c6143b 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -1,4 +1,4 @@ -name: Continuous Delivery +name: Continuous Deployment on: workflow_run: workflows: [Continuous Integration] @@ -6,18 +6,8 @@ on: branches: [main] jobs: on-success: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_ACCESS_TOKEN }}" > .npmrc - - run: npx semantic-release --dry-run false --ci false - env: - GITHUB_TOKEN: ${{ secrets.GIT_TOKEN_BASIC }} + name: Semantic Release + uses: cncsc/actions/.github/workflows/semantic-release.yaml@main + secrets: + GIT_TOKEN_BASIC: ${{ secrets.GIT_TOKEN_BASIC }} + NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f9e0334..4e13c34 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,15 +3,5 @@ on: - push jobs: ci: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - run: npm ci - - run: npm run lint + name: Validation + uses: cncsc/actions/.github/workflows/validation.yaml@main