Skip to content

Commit

Permalink
add condition "tag" for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Sep 16, 2021
1 parent e4c5d1a commit 6e78338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: publis-npm
#if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v')
run: |
npm install
npm run build
Expand All @@ -48,7 +48,7 @@ jobs:
registry-url: https://npm.pkg.github.com/
scope: '@geodacenter'
- name: publish-gpr
#if: startsWith(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v')
run: |
npm install
npm run build
Expand Down

0 comments on commit 6e78338

Please sign in to comment.