Skip to content

Commit

Permalink
avoid redundant publication
Browse files Browse the repository at this point in the history
  • Loading branch information
lixun910 committed Sep 16, 2021
1 parent 25f7811 commit 08d5998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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 @@ -32,7 +32,7 @@ jobs:
#if: startsWith(github.ref, 'refs/tags/v')
run: |
npm install
npm run build --if-present
npm run build
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Expand All @@ -54,7 +54,7 @@ jobs:
echo @geodacenter:registry=https://npm.pkg.github.com >> .npmrc
echo always-auth=true >> .npmrc
npm install
npm run build --if-present
npm run build
npm publish
env:
# replace ${GITHUB_TOKEN} in .npmrc
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"serve": "http-server",
"start": "npm run build && npm run serve",
"doc": "jsdoc -d docs --configure jsconf.json --readme README.md",
"publish": "npm run build:bundle && npm publish --access public",
"test": "tape tests/**/*.js"
},
"devDependencies": {
Expand Down

0 comments on commit 08d5998

Please sign in to comment.