From 654b83e0f37273cc1b07a11139d87d9139fe94c2 Mon Sep 17 00:00:00 2001 From: Zach Guo Date: Tue, 20 Aug 2019 15:00:38 -0700 Subject: [PATCH] fix absent node_modules for npm publish --- ci/npm-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/npm-publish.yml b/ci/npm-publish.yml index 3ae89d4..d8da525 100644 --- a/ci/npm-publish.yml +++ b/ci/npm-publish.yml @@ -28,6 +28,7 @@ jobs: with: node-version: 12 registry-url: https://registry.npmjs.org/ + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} @@ -42,6 +43,7 @@ jobs: node-version: 12 registry-url: https://npm.pkg.github.com/ scope: '@your-github-username' + - run: npm ci - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}