diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml deleted file mode 100644 index 028c917..0000000 --- a/.github/workflows/cd.yml +++ /dev/null @@ -1,40 +0,0 @@ -name: Continuous Delivery - -on: - push: - branches: - - master - - beta - -jobs: - cd: - name: Continuous Delivery - runs-on: ubuntu-latest - steps: - - id: yarn-cache - name: Get Yarn cache path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 - - uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d - with: - node-version: 14.x - - uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed - name: Load Yarn cache - with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - run: yarn install --ignore-scripts - name: Install dependencies - - run: yarn build - name: Build package - - # Continuous Delivery Pipeline -- - - - uses: docker://ghcr.io/codfish/semantic-release-action@sha256:16ab6c16b1bff6bebdbcc6cfc07dfafff49d23c6818490500b8edb3babfff29e - name: Semantic Release - id: semantic - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 0000000..dfdbd77 --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,12 @@ +name: CI/CD + +on: + push: + pull_request: + types: [opened, edited, reopened, synchronize] + +jobs: + ci-cd: + name: CI/CD + uses: 47ng/workflows/.github/workflows/node-ci-cd.yml@main + secrets: inherit diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 31fc491..0000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,45 +0,0 @@ -name: Continuous Integration - -on: - push: - branches: - - next - - feature/* - - dependabot/* - pull_request: - types: [opened, edited, reopened, synchronize] - -jobs: - ci: - name: Continuous Integration - runs-on: ubuntu-latest - steps: - - id: yarn-cache - name: Get Yarn cache path - run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 - - uses: actions/setup-node@56899e050abffc08c2b3b61f3ec6a79a9dc3223d - with: - node-version: 14.x - - uses: actions/cache@937d24475381cd9c75ae6db12cb4e79714b926ed - name: Load Yarn cache - with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - run: yarn install --ignore-scripts - name: Install dependencies - - run: yarn ci - name: Run integration tests - - uses: coverallsapp/github-action@9ba913c152ae4be1327bfb9085dc806cedb44057 - name: Report code coverage - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - - uses: 47ng/actions-slack-notify@main - name: Notify on Slack - if: always() - with: - status: ${{ job.status }} - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}