- retain package-lock.json, and drop ci change

This commit is contained in:
Mike Penz
2021-12-04 11:24:15 +01:00
parent 71cd64f865
commit 425fab789a
4 changed files with 8106 additions and 1332 deletions
-18
View File
@@ -78,24 +78,6 @@ jobs:
CHANGELOG: ${{ steps.complex_release.outputs.changelog }}
run: echo "CHANGELOG"
# Showcases a more complex configuration, providing a configuration, and specifically referencing owner, repo, from, to tag and base URL
- name: "Complex Configuration with base URL"
id: complex_release_baseurl
uses: ./
with:
configuration: "configs/configuration_complex.json"
owner: "mikepenz"
repo: "release-changelog-builder-action"
fromTag: "v0.0.1"
toTag: "v0.0.3"
baseUrl: "https://corp.globant.com/api/v3"
token: ${{ secrets.GITHUB_TOKEN }}
- name: Echo Complex Configuration With baseUrl Changelog
env:
CHANGELOG: ${{ steps.complex_release_baseurl.outputs.changelog }}
run: echo "CHANGELOG"
# Showcases the capability to generate the changelog for an external repository provided
- name: "External Repo Configuration"
id: external_changelog
Generated Vendored
+3 -6
View File
@@ -357,7 +357,6 @@ function run() {
const configurationFile = core.getInput('configuration');
const configuration = (0, utils_1.resolveConfiguration)(repositoryPath, configurationFile);
// read in repository inputs
const baseUrl = core.getInput('baseUrl');
const token = core.getInput('token');
const owner = core.getInput('owner') || github.context.repo.owner;
const repo = core.getInput('repo') || github.context.repo.repo;
@@ -368,7 +367,7 @@ function run() {
const ignorePreReleases = core.getInput('ignorePreReleases') === 'true';
const failOnError = core.getInput('failOnError') === 'true';
const commitMode = core.getInput('commitMode') === 'true';
const result = yield new releaseNotesBuilder_1.ReleaseNotesBuilder(baseUrl, token, repositoryPath, owner, repo, fromTag, toTag, failOnError, ignorePreReleases, commitMode, configuration).build();
const result = yield new releaseNotesBuilder_1.ReleaseNotesBuilder(token, repositoryPath, owner, repo, fromTag, toTag, failOnError, ignorePreReleases, commitMode, configuration).build();
core.setOutput('changelog', result);
// write the result in changelog to file if possible
const outputFile = core.getInput('outputFile');
@@ -766,8 +765,7 @@ const tags_1 = __nccwpck_require__(7532);
const utils_1 = __nccwpck_require__(918);
const transform_1 = __nccwpck_require__(1644);
class ReleaseNotesBuilder {
constructor(baseUrl, token, repositoryPath, owner, repo, fromTag, toTag, failOnError, ignorePreReleases, commitMode, configuration) {
this.baseUrl = baseUrl;
constructor(token, repositoryPath, owner, repo, fromTag, toTag, failOnError, ignorePreReleases, commitMode, configuration) {
this.token = token;
this.repositoryPath = repositoryPath;
this.owner = owner;
@@ -801,8 +799,7 @@ class ReleaseNotesBuilder {
core.endGroup();
// load octokit instance
const octokit = new rest_1.Octokit({
auth: `token ${this.token || process.env.GITHUB_TOKEN}`,
baseUrl: `${this.baseUrl || "https://api.github.com"}`
auth: `token ${this.token || process.env.GITHUB_TOKEN}`
});
// ensure proper from <-> to tag range
core.startGroup(`🔖 Resolve tags`);
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+6804 -9
View File
File diff suppressed because it is too large Load Diff