Skip to content

Commit

Permalink
change task dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Sep 16, 2021
1 parent 08d5998 commit e4c5d1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e4c5d1a

Please sign in to comment.