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