Skip to content

Commit

Permalink
ci(github-actions): add lint and changelog GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
b-kelly committed Aug 17, 2022
1 parent 7f288a7 commit 2270a25
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -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
14 changes: 14 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2270a25

Please sign in to comment.