From e4c5d1a0c105698aab16171817776f2beae5bc25 Mon Sep 17 00:00:00 2001 From: Xun Li Date: Thu, 16 Sep 2021 16:32:32 -0700 Subject: [PATCH] change task dependency --- .github/workflows/build_and_publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index e6b5fd7..9ca2ddb 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -38,7 +38,7 @@ jobs: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} publish-gpr: - needs: publish-npm + needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -50,11 +50,11 @@ jobs: - name: publish-gpr #if: startsWith(github.ref, 'refs/tags/v') run: | + npm install + npm run build echo //npm.pkg.github.com/:_authToken=${GITHUB_TOKEN} > .npmrc echo @geodacenter:registry=https://npm.pkg.github.com >> .npmrc echo always-auth=true >> .npmrc - npm install - npm run build npm publish env: # replace ${GITHUB_TOKEN} in .npmrc