Skip to content

Commit

Permalink
CI: simplify workflows with files in main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
remileduc committed Nov 9, 2023
1 parent 310e59d commit f4877b7
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/actions/package-install/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ description: Install Node.js, NPM, and the package's NPM dependencies, and cache
runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_build-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: 📥 Install
uses: ./.github/actions/package-install
uses: remileduc/vcards-io/.github/actions/package-install@main

- name: Build
run: npm run build
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ jobs:
name: Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: 📥 Install
uses: ./.github/actions/package-install
uses: remileduc/vcards-io/.github/actions/package-install@main

- name: Biuld documentation
run: npm run doc
8 changes: 4 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ on:
branches:
- main

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read
actions: read
checks: write

concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true

jobs:
call-build-lint:
name: ⚒️ Build - 🧹 Lint
Expand Down

0 comments on commit f4877b7

Please sign in to comment.