From 84d870a97ca66a317880439857b00f5434f3a8c2 Mon Sep 17 00:00:00 2001 From: Yoriiis Date: Tue, 4 Jul 2023 11:11:38 +0200 Subject: [PATCH 1/2] Add lint job before npm publish --- .github/workflows/lint.yml | 1 + .github/workflows/npm-publish.yml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a400f0f..0e07642 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,7 @@ name: Lint on: workflow_dispatch: + workflow_call: push: branches: - main diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a2348f3..01c42bc 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -5,6 +5,9 @@ on: types: [published] jobs: + lint: + uses: yoriiis/chunks-webpack-plugin/.github/workflows/lint.yml@main + npm: uses: yoriiis/actions/.github/workflows/npm-publish.yml@main with: From 4b25dc035e2b0b5f32ebdbc9dd3c3ccc02453eb7 Mon Sep 17 00:00:00 2001 From: Yoriiis Date: Sun, 9 Jul 2023 18:11:49 +0200 Subject: [PATCH 2/2] Add missing needs --- .github/workflows/npm-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 01c42bc..ef58b9e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -9,6 +9,7 @@ jobs: uses: yoriiis/chunks-webpack-plugin/.github/workflows/lint.yml@main npm: + needs: lint uses: yoriiis/actions/.github/workflows/npm-publish.yml@main with: node-version: 16