-
Notifications
You must be signed in to change notification settings - Fork 2
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 #13 from chaseadamsio/ci-addReleaseIt
Add Release It & VSCE automation
- Loading branch information
Showing
9 changed files
with
1,821 additions
and
41 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,12 @@ | ||
FROM node:11.11.0-alpine | ||
|
||
LABEL "com.github.actions.name"="Release" | ||
LABEL "com.github.actions.description"="Release the extension" | ||
LABEL "com.github.actions.icon"="check-circle" | ||
LABEL "com.github.actions.color"="green" | ||
|
||
RUN apk add --update --no-cache bash git openssh openssh-client | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
ENTRYPOINT [ "/entrypoint.sh" ] |
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 | ||
eval $(ssh-agent -s) | ||
echo "$SSH_PRIVATE_KEY" | ssh-add - | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "CAIO VSCE Robot" | ||
|
||
git branch -u origin/master | ||
|
||
yarn install | ||
yarn run 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
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,17 @@ | ||
module.exports = { | ||
// npm: false (commenting out but leaving, ) | ||
github: { | ||
release: false, | ||
releaseNotes: false | ||
}, | ||
git: { | ||
changelog: | ||
"npx auto-changelog --stdout --commit-limit false -u --template ./release-it/changelog.hbs" | ||
}, | ||
scripts: { | ||
beforeStage: "npx auto-changelog -p" | ||
}, | ||
plugins: { | ||
"./release-it/version.js": {} | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
### Changelog | ||
|
||
All notable changes to "Neon Night" will be documented in this file. Dates are displayed in UTC. | ||
|
||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). | ||
|
||
{{#each releases}} | ||
{{#if @first}} | ||
{{#each merges}} | ||
- {{{message}}}{{#if href}} [`#{{id}}`]({{href}}){{/if}} | ||
{{/each}} | ||
{{#each fixes}} | ||
- {{{commit.subject}}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}} | ||
{{/each}} | ||
{{#each commits}} | ||
- {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}} | ||
{{/each}} | ||
{{/if}} | ||
{{/each}} |
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 @@ | ||
const pkgJSON = require(`../package.json`); | ||
const { Plugin } = require(`release-it`); | ||
|
||
class MyPlugin extends Plugin { | ||
getLatestVersion() { | ||
return pkgJSON.version.trim(); | ||
} | ||
} | ||
|
||
module.exports = MyPlugin; |
Oops, something went wrong.