From ddd01b7915b7891681a7aff07edee59201f6d0d2 Mon Sep 17 00:00:00 2001 From: Robinson Zimmermann <16561945+robinsonzimmermann@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:01:50 +0100 Subject: [PATCH] Add PR workflow (#100) --- .github/workflows/merge.yml | 4 ---- .github/workflows/pr.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/pr.yml diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 14ccc99a..4c82af4a 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -1,11 +1,7 @@ name: Publish content before merging on: - pull_request: - types: [enqueued] - branches: [main, publish-article-pipeline] merge_group: - types: [checks_requested] jobs: publish: diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml new file mode 100644 index 00000000..db5a05b7 --- /dev/null +++ b/.github/workflows/pr.yml @@ -0,0 +1,18 @@ +name: Publish content before merging + +on: + pull_request: + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 20 + - run: npm ci + - run: npm run build:utils + - run: npm run posts:publish +