From 1fa1a1468b1143831c60d0ef2b6b72d219ec2736 Mon Sep 17 00:00:00 2001 From: Yoriiis Date: Mon, 3 Jul 2023 21:42:17 +0200 Subject: [PATCH] Call lint before publish --- .github/workflows/lint.yml | 1 + .github/workflows/npm-publish.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7cd62af9..f8bf5b4e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,7 @@ name: Lint on: workflow_dispatch: + workflow_call: merge_group: push: branches: diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ccd94632..63ffacbb 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -5,7 +5,11 @@ on: types: [published] jobs: + lint: + uses: .github/workflows/lint.yml@main + npm: + needs: lint uses: yoriiis/actions/.github/workflows/npm-publish.yml@main with: node-version: 16