-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #200 from zendesk/andre_automate_releases
chore(release): automate copenhagen theme releases
- Loading branch information
Showing
7 changed files
with
5,249 additions
and
16 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,18 @@ | ||
## Description | ||
|
||
<!-- a summary of the changes introduced by this PR and the motivation behind them --> | ||
|
||
## Screenshots | ||
|
||
<!-- (optional) when applicable, please include some screenshots or gifs that illustrate the changes --> | ||
|
||
## Checklist | ||
|
||
- [ ] :green_book: all commit messages follow the [conventional commits](https://conventionalcommits.org/) standard | ||
- [ ] :nail_care: SASS files are compiled | ||
- [ ] :arrow_left: changes are compatible with RTL direction | ||
- [ ] :wheelchair: changes are accessible | ||
- [ ] :memo: changes are tested in Chrome, Firefox, Safari, Edge, and IE11 | ||
- [ ] :+1: PR is approved by @zendesk/vikings | ||
|
||
<!-- More info about the contribution process can be found at https://github.com/zendesk/copenhagen_theme#contributing --> |
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,23 @@ | ||
|
||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 12 | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Release | ||
run: yarn semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,18 @@ | ||
{ | ||
"branches": [ | ||
"master" | ||
], | ||
"plugins": [ | ||
"@semantic-release/commit-analyzer", | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
["@semantic-release/exec", { | ||
"prepareCmd": "./bin/update-manifest-version.sh ${nextRelease.version}" | ||
}], | ||
["@semantic-release/git", { | ||
"assets": ["manifest.json", "CHANGELOG.md"], | ||
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}" | ||
}], | ||
"@semantic-release/github" | ||
] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
|
||
# EXIT ON ERROR | ||
set -e | ||
|
||
# UPDATE MANIFEST VERSION | ||
NEW_VERSION=$1 | ||
mv manifest.json manifest.temp.json | ||
jq -r '.version |= "'${NEW_VERSION}'"' manifest.temp.json > manifest.json | ||
rm manifest.temp.json |
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.