Skip to content

Commit

Permalink
(release) 2.2.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanSusana committed Oct 9, 2019
1 parent 7ff1004 commit ed1c03b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ script:

deploy:
- provider: script
script: "mvn deploy --settings .travis.maven.settings.xml -Psign-artifacts -Ptravis -DskipTests=true -B -U -e"
script: bash deploy.sh $TRAVIS_TAG
skip_cleanup: true
on:
tags: true
38 changes: 0 additions & 38 deletions admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -122,43 +122,5 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>travis</id>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>npm login</id>
<goals>
<goal>npm</goal>
</goals>
<phase>deploy</phase>
<configuration>
<!--suppress UnresolvedMavenProperty -->
<arguments>config set //registry.npmjs.org/:_authToken ${env.NPM_OAUTH_TOKEN}
</arguments>
</configuration>
</execution>
<execution>
<id>npm publish</id>
<goals>
<goal>npm</goal>
</goals>
<phase>deploy</phase>
<configuration>
<arguments>publish --verbose</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

</profile>
</profiles>

</project>
2 changes: 1 addition & 1 deletion admin/src/main/resources/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion admin/src/main/resources/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "elepy-vue",
"version": "2.2.6",
"version": "2.2.7",
"main": "src/index.js",
"browser": {
".": "src/Elepy.vue"
Expand Down
6 changes: 6 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

mvn versions:set-property -Dproperty=revision -DnewVersion=$1
npm config set //registry.npmjs.org/:_authToken $NPM_OAUTH_TOKEN
mvn deploy --settings .travis.maven.settings.xml -Psign-artifacts -Ptravis -DskipTests=true -B -U -e
npm publish ./admin/src/main/resources/frontend

0 comments on commit ed1c03b

Please sign in to comment.