Skip to content

Commit

Permalink
Move to reusable actions workflows (patch)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukiffer committed Nov 9, 2022
1 parent 5e8d47b commit 9ad9bdb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
22 changes: 6 additions & 16 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,13 @@
name: Continuous Delivery
name: Continuous Deployment
on:
workflow_run:
workflows: [Continuous Integration]
types: [completed]
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 }}
14 changes: 2 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9ad9bdb

Please sign in to comment.