diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml
index 3293e6b..ae508da 100644
--- a/.github/workflows/npmpublish.yml
+++ b/.github/workflows/npmpublish.yml
@@ -19,7 +19,7 @@ jobs:
       - run: npm test
 
   publish-npm:
-    needs: build
+    needs: test
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2