Update npmpublish.yml
authorAlessandro Pio Ardizio <alessandroardizio94@gmail.com>
Sun, 29 Aug 2021 12:23:06 +0000 (14:23 +0200)
committerGitHub <noreply@github.com>
Sun, 29 Aug 2021 12:23:06 +0000 (14:23 +0200)
.github/workflows/npmpublish.yml

index 99e81f18b20928f3d7bb0800e6abcc3c0c678baa..874d8a327048c29a3c9114a0227357ce6c205a08 100644 (file)
@@ -56,7 +56,9 @@ jobs:
 
       - name: Publish Release
         if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
-        run: npm publish
+        run: |
+          npm login
+          npm publish
         env:
           NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}