From e862cfbf13d9e6d3509b609a31f8ebad1a31569a Mon Sep 17 00:00:00 2001 From: Janek Rahrt Date: Tue, 19 Oct 2021 10:34:58 +0200 Subject: [PATCH] fix: split pipelines --- .github/workflows/docs-bot.yml | 22 ++++++++++++++++++++++ .github/workflows/node.js.yml | 20 ++++---------------- 2 files changed, 26 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/docs-bot.yml diff --git a/.github/workflows/docs-bot.yml b/.github/workflows/docs-bot.yml new file mode 100644 index 000000000..64f5467b6 --- /dev/null +++ b/.github/workflows/docs-bot.yml @@ -0,0 +1,22 @@ +name: Node.js CI +on: + push: + branches: + - main +jobs: + generate-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 14.x + - run: npm ci + - run: npm run docs + - name: Do git actions + run: | + git config user.email "janek@argent.xyz" + git config user.name "Docs Bot" + git add --force -- docs/README.md + git commit -m "docs: add generated docs" + git push diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 4646e038b..8c79fab94 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -3,6 +3,10 @@ on: push: branches: - main + pull_request: + branches: + - main + jobs: build-and-test: runs-on: ubuntu-latest @@ -19,19 +23,3 @@ jobs: - run: npm ci - run: npm run build --if-present - run: npm test - generate-docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 14.x - - run: npm ci - - run: npm run docs - - name: Do git actions - run: | - git config user.email "janek@argent.xyz" - git config user.name "Docs Bot" - git add --force -- docs/README.md - git commit -m "docs: add generated docs" - git push