improve prerelease ci
This commit is contained in:
parent
711bc806f1
commit
8c97d8bdf0
2 changed files with 6 additions and 7 deletions
|
@ -31,6 +31,8 @@ stages:
|
|||
|
||||
.clj-job: &clj
|
||||
image: clojure:lein-2.7.1-alpine
|
||||
before_script:
|
||||
- echo "{:auth {:repository-auth {#\"clojars\" {:username \"${CLOJARS_USER}\" :password \"${CLOJARS_PASSWORD}\" }}}}" > ~/.lein/profiles.clj
|
||||
|
||||
build_and_test:
|
||||
<<: *cljs
|
||||
|
@ -84,10 +86,8 @@ upload-cljs-prerelease:
|
|||
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null'
|
||||
script:
|
||||
- cp package.json target/npm-build/
|
||||
- sed -i 's|SNAPSHOT|'$(date +"%Y%m%d%H%M%S")'|' ./target/npm-build/package.json
|
||||
- npm publish ./target/npm-build --access public
|
||||
# unsure wether that's a good idea to bump versions from ci.
|
||||
#- npm version prerelease -m "[skip-ci] version bump prerelease version"
|
||||
#- git push
|
||||
|
||||
upload-clj-prerelease:
|
||||
<<: *clj
|
||||
|
@ -95,8 +95,7 @@ upload-clj-prerelease:
|
|||
rules:
|
||||
- if: '$CI_COMMIT_BRANCH == "master" && $CI_COMMIT_TAG == null'
|
||||
script:
|
||||
- echo "{:user {:auth {#\"clojars\" {:username :env/CLOJARS_USER :password :env/CLOJARS_PASSWORD}}}}" > ~/.lein/profiles.clj
|
||||
- lein deploy
|
||||
- lein deploy clojars
|
||||
|
||||
upload-js-release:
|
||||
<<: *js-upload
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"name": "mastodon-bot",
|
||||
"description": "Bot to publish twitter, tumblr or rss posts to an mastodon account.",
|
||||
"author": "Dmitri Sotnikov",
|
||||
"version": "1.10.5-20210311180500",
|
||||
"version": "1.10.5-SNAPSHOT",
|
||||
"homepage": "https://github.com/yogthos/mastodon-bot",
|
||||
"repository": "https://www.npmjs.com/package/mastodon-bot",
|
||||
"license": "MIT",
|
||||
|
|
Reference in a new issue