-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
7,362 additions
and
682 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
buttons: | ||
- title: Release Version | ||
action: "semantic_release" | ||
description: Create a new version through semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
on: | ||
repository_dispatch: | ||
types: [semantic_release] | ||
name: Release new version | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.SLACK_WEBHOOK }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
run: npx semantic-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"tagFormat": "${version}", | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
["@google/semantic-release-replace-plugin", { | ||
"replacements": [ | ||
{ | ||
"files": ["src/environments/environment.ts", "src/environments/environment.prod.ts"], | ||
"from": "appVersion: \".*\"", | ||
"to": "appVersion: \"${nextRelease.version}\"", | ||
"results": [ | ||
{ | ||
"file": "src/environments/environment.ts", | ||
"hasChanged": true, | ||
"numMatches": 1, | ||
"numReplacements": 1 | ||
}, | ||
{ | ||
"file": "src/environments/environment.prod.ts", | ||
"hasChanged": true, | ||
"numMatches": 1, | ||
"numReplacements": 1 | ||
} | ||
], | ||
"countMatches": true | ||
} | ||
] | ||
}], | ||
["@semantic-release/npm", { | ||
"npmPublish": false | ||
}], | ||
["@semantic-release/git", { | ||
"assets": ["src/environments/environment.ts", "src/environments/environment.prod.ts", "package.json"] | ||
}], | ||
["@semantic-release/exec", { | ||
"publishCmd": "./docker/publish.sh ${nextRelease.version} && tar -zcf ndb-core_${nextRelease.version}.tar.gz dist" | ||
}], | ||
["@semantic-release/github", { | ||
"assets": "ndb-core_${nextRelease.version}.tar.gz" | ||
}], | ||
["semantic-release-slack-bot", { | ||
"packageName": "ndb-server", | ||
"notifyOnSuccess": true, | ||
"notifyOnFail": true | ||
}] | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.