From 89771f606c418b481df4fc1781d1d1cf8a22b2d4 Mon Sep 17 00:00:00 2001 From: Leonhardt Wille Date: Thu, 12 Mar 2020 11:25:19 +0100 Subject: [PATCH] chore(ci): run publish action only on package.json change --- .github/workflows/npm-publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 5260707..ac98a32 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -3,15 +3,17 @@ on: push: branches: - master + paths: + - package.json jobs: npm-publish: name: npm-publish runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@master + uses: actions/checkout@v2 - name: Set up Node.js - uses: actions/setup-node@master + uses: actions/setup-node@v1.4.0 with: node-version: 10.0.0 - name: Publish if version has been updated