Skip to content

Commit

Permalink
update npm release process
Browse files Browse the repository at this point in the history
when publishing, do not use "prepare" script to re-build the dist files, just use the files that are there from earlier in release.sh
  • Loading branch information
gavinr-maps committed Feb 23, 2022
1 parent 6a8b7db commit 8975277
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@
"build": "rollup -c profiles/debug.js & rollup -c profiles/production.js",
"lint": "semistandard | snazzy",
"prebuild": "mkdirp dist",
"prepare": "npm run build",
"pretest": "npm run build",
"precommit": "npm run lint",
"fix": "semistandard --fix",
Expand Down
6 changes: 3 additions & 3 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ zip -r $NAME-v$VERSION.zip dist
# run gh-release to create the tag and push release to github
gh-release --assets $NAME-v$VERSION.zip

# publish release on NPM
npm publish

# checkout master and delete release branch locally and on GitHub
git checkout master
git branch -D gh-release
git push https://github.com/Esri/esri-leaflet :gh-release

# publish release on NPM
npm publish

0 comments on commit 8975277

Please sign in to comment.