From 2270a258f97c5312288b966cfa25ef223a7c9ba4 Mon Sep 17 00:00:00 2001 From: Ben Kelly Date: Tue, 16 Aug 2022 21:46:40 -0400 Subject: [PATCH] ci(github-actions): add lint and changelog GitHub actions --- .github/workflows/lint.yml | 32 ++++++++++++++++++++++++++++ .github/workflows/release-please.yml | 14 ++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .github/workflows/lint.yml create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..6aea130 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Node.js environment + uses: actions/setup-node@v3 + with: + node-version: lts/* + cache: "npm" + + - name: Install dependencies + run: npm ci + + - name: Run ESLint + run: npm run lint:eslint + + - name: Run Prettier validation + run: npm run lint:prettier + +# cancel the jobs if another workflow is kicked off for the same branch +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..080713c --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,14 @@ +on: + push: + branches: + - main +name: release-please +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + release-type: node + package-name: release-please-action + monorepo-tags: true