Build(deps-dev): bump @vercel/ncc from 0.36.1 to 0.38.1#1121
Merged
Conversation
Contributor
Owner
|
@dependabot rebase |
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.36.1 to 0.38.1. - [Release notes](https://github.com/vercel/ncc/releases) - [Commits](vercel/ncc@0.36.1...0.38.1) --- updated-dependencies: - dependency-name: "@vercel/ncc" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
9a061d5 to
9386ba5
Compare
Owner
|
@github-actions run 🔨 Build & Push// Get pull-req URL like "https://api.github.com/repos/nwtgck/actions-merge-preview/pulls/4"
const pullReqUrl = context.payload.issue.pull_request.url;
const githubUser = context.payload.repository.owner.login;
const res = await fetch(pullReqUrl, {
headers: [
['Authorization', `Basic ${Buffer.from(`${githubUser}:${githubToken}`).toString('base64')}`]
]
});
const resJson = await res.json();
const prUserName = resJson.head.user.login;
const baseBranchName = resJson.base.ref;
const branchName = resJson.head.ref;
const fullRepoName = resJson.head.repo.full_name;
const buildBranch = `actions-build/${prUserName}-${branchName}`;
execSync(`git config --global user.email "github-actions[bot]@users.noreply.github.com"`);
execSync(`git config --global user.name "github-actions[bot]"`);
// (from: https://stackoverflow.com/a/23987039/2885946)
execSync(`git fetch --all`);
console.log(execSync(`git checkout ${baseBranchName}`).toString());
console.log(execSync(`git checkout -b ${buildBranch} ${baseBranchName}`).toString());
console.log(execSync(`git pull https://github.com/${fullRepoName}.git ${branchName}`).toString());
console.log(execSync(`npm ci`).toString());
console.log(execSync(`npm run all`).toString());
if (execSync('git status --porcelain').length === 0) {
const commentBody = `\
Built file is up to date.
`;
// Comment the deploy URL
await postComment(commentBody);
} else {
console.log(execSync(`git add .; git commit -m 'build'`).toString());
// Push preview branch
// NOTE: Force push (should be safe because preview branch always start with "actions-build/")
execSync(`git push -fu origin ${buildBranch}`);
const baseRepoFullName = context.payload.repository.full_name;
// Comment body
const commentBody = `\
Built branch: <https://github.com/${baseRepoFullName}/tree/${buildBranch}>
Compare: https://github.com/${baseRepoFullName}/compare/${resJson.base.ref}...${buildBranch}
`;
// Comment the deploy URL
await postComment(commentBody);
} |
Contributor
|
Built file is up to date. |
nwtgck
approved these changes
Mar 10, 2024
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps @vercel/ncc from 0.36.1 to 0.38.1.
Release notes
Sourced from
@vercel/ncc's releases.Commits
ce5984efix: sourcemap sources removes webpack path (#1122)f9c1153chore(deps): Bump amannn/action-semantic-pull-request from 5.2.0 to 5.3.0 (#1...0bc78fechore(deps-dev): Bump isomorphic-unfetch from 3.1.0 to 4.0.2 (#1116)5796c1fchore(deps): Bump word-wrap from 1.2.3 to 1.2.4 (#1094)e2779f4feat: Log minification error when--debug(#1102)4a9d97cchore(deps): Bump protobufjs from 6.11.3 to 6.11.4 (#1103)ca70272chore(deps): bump cookiejar from 2.1.2 to 2.1.4 (#1031)c366eadchore(deps): Bump apollo-server-core from 2.22.1 to 2.26.2 (#1108)f898f8efeat: add support for TypeScript 5.0's array extends in tsconfig (#1105)2a1437bchore(deps-dev): Bump mongoose from 5.13.15 to 5.13.20 (#1093)You can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)