Compare commits

..
1 Commits
Author SHA1 Message Date
github-actions[bot] d89c1de63c v1.4.4 2023-05-10 05:27:50 +00:00
11 changed files with 1663 additions and 1691 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Use Node.js 20
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 16.x
- name: Install Dependencies
run: yarn --frozen-lockfile
+2 -2
View File
@@ -14,10 +14,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v2
- name: Use Node.js 20
- name: Use Node.js 16
uses: actions/setup-node@v1
with:
node-version: 20.x
node-version: 16.x
- name: Install Dependencies
run: yarn --frozen-lockfile
-12
View File
@@ -1,17 +1,5 @@
# @changesets/action
## 1.4.6
### Patch Changes
- [#350](https://github.com/changesets/action/pull/350) [`9385be9`](https://github.com/changesets/action/commit/9385be9e757839189ea5ee63ec4e3caa8a6ca71b) Thanks [@m-shaka](https://github.com/m-shaka)! - Bump the used node.js from 16 to 20
## 1.4.5
### Patch Changes
- [#282](https://github.com/changesets/action/pull/282) [`eb19e25`](https://github.com/changesets/action/commit/eb19e25e7797cf33dc2de4caa071e85a8057a0f0) Thanks [@mark-omarov](https://github.com/mark-omarov)! - Updated a few dependencies to patch the security vulnerabilities that were reported for their older versions.
## 1.4.4
### Patch Changes
+8 -8
View File
@@ -43,10 +43,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20
- name: Setup Node.js 16
uses: actions/setup-node@v3
with:
node-version: 20
node-version: 16
- name: Install Dependencies
run: yarn
@@ -79,10 +79,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20.x
- name: Setup Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 20.x
node-version: 16.x
- name: Install Dependencies
run: yarn
@@ -144,10 +144,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20.x
- name: Setup Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 20.x
node-version: 16.x
- name: Install Dependencies
run: yarn
@@ -188,10 +188,10 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js 20.x
- name: Setup Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 20.x
node-version: 16.x
- name: Install Dependencies
run: yarn
+1 -1
View File
@@ -1,7 +1,7 @@
name: Changesets
description: A GitHub action to automate releases with Changesets
runs:
using: "node20"
using: "node16"
main: "dist/index.js"
inputs:
publish:
+8 -12
View File
File diff suppressed because one or more lines are too long
+16 -18
View File
@@ -1,6 +1,6 @@
{
"name": "@changesets/action",
"version": "1.4.6",
"version": "1.4.4",
"main": "dist/index.js",
"license": "MIT",
"devDependencies": {
@@ -10,17 +10,7 @@
"@vercel/ncc": "^0.36.1",
"fixturez": "^1.1.0",
"prettier": "^2.0.5",
"typescript": "^5.0.4",
"@babel/core": "^7.13.10",
"@babel/preset-env": "^7.13.10",
"@babel/preset-typescript": "^7.13.0",
"@types/fs-extra": "^8.0.0",
"@types/jest": "^29.5.1",
"@types/node": "^20.11.17",
"@types/semver": "^7.5.0",
"babel-jest": "^29.5.0",
"husky": "^3.0.3",
"jest": "^29.5.0"
"typescript": "^5.0.4"
},
"scripts": {
"build": "ncc build src/index.ts -o dist --transpile-only --minify",
@@ -31,22 +21,32 @@
"release": "node ./scripts/release.js"
},
"engines": {
"node": ">= 20"
"node": ">= 16"
},
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.1.1",
"@babel/core": "^7.13.10",
"@babel/preset-env": "^7.13.10",
"@babel/preset-typescript": "^7.13.0",
"@changesets/pre": "^1.0.9",
"@changesets/read": "^0.5.3",
"@manypkg/get-packages": "^1.1.3",
"@octokit/plugin-throttling": "^5.2.1",
"@octokit/plugin-throttling": "5.1.1",
"@types/fs-extra": "^8.0.0",
"@types/jest": "^29.5.1",
"@types/node": "^12.7.1",
"@types/semver": "^6.0.2",
"babel-jest": "^29.5.0",
"fs-extra": "^8.1.0",
"husky": "^3.0.3",
"jest": "^29.5.0",
"mdast-util-to-string": "^1.0.6",
"remark-parse": "^7.0.1",
"remark-stringify": "^7.0.3",
"resolve-from": "^5.0.0",
"semver": "^7.5.3",
"semver": "^6.3.0",
"unified": "^8.3.2"
},
"husky": {
@@ -54,8 +54,6 @@
},
"prettier": {},
"resolutions": {
"**/@octokit/core": "4.2.0",
"trim": "^0.0.3",
"y18n": "^4.0.1"
"**/@octokit/core": "4.2.0"
}
}
+5 -7
View File
@@ -11,19 +11,17 @@ export default async function readChangesetState(
cwd: string = process.cwd()
): Promise<ChangesetState> {
let preState = await readPreState(cwd);
let isInPreMode = preState !== undefined && preState.mode === "pre";
let changesets = await readChangesets(cwd);
if (preState !== undefined && preState.mode === "pre") {
if (isInPreMode) {
let changesetsToFilter = new Set(preState.changesets);
return {
preState,
changesets: changesets.filter((x) => !changesetsToFilter.has(x.id)),
};
changesets = changesets.filter((x) => !changesetsToFilter.has(x.id));
}
return {
preState: undefined,
preState: isInPreMode ? preState : undefined,
changesets,
};
}
+6 -14
View File
@@ -17,6 +17,8 @@ import * as gitUtils from "./gitUtils";
import readChangesetState from "./readChangesetState";
import resolveFrom from "resolve-from";
import { throttling } from "@octokit/plugin-throttling";
// temporary workaround for https://github.com/octokit/plugin-throttling.js/pull/590
import type {} from "@octokit/plugin-throttling/dist-types/types.d";
// GitHub Issues/PRs messages have a max size limit on the
// message body payload.
@@ -24,7 +26,7 @@ import { throttling } from "@octokit/plugin-throttling";
// To avoid that, we ensure to cap the message to 60k chars.
const MAX_CHARACTERS_PER_MESSAGE = 60000;
const setupOctokit = (githubToken: string) => {
const setupOctokit = (githubToken) => {
return new (GitHub.plugin(throttling))(
getOctokitOptions(githubToken, {
throttle: {
@@ -59,7 +61,7 @@ const setupOctokit = (githubToken: string) => {
};
const createRelease = async (
octokit: ReturnType<typeof setupOctokit>,
octokit: ReturnType<typeof GitHub>,
{ pkg, tagName }: { pkg: Package; tagName: string }
) => {
try {
@@ -85,12 +87,7 @@ const createRelease = async (
});
} catch (err) {
// if we can't find a changelog, the user has probably disabled changelogs
if (
err &&
typeof err === "object" &&
"code" in err &&
err.code !== "ENOENT"
) {
if (err.code !== "ENOENT") {
throw err;
}
}
@@ -208,12 +205,7 @@ const requireChangesetsCliPkgJson = (cwd: string) => {
try {
return require(resolveFrom(cwd, "@changesets/cli/package.json"));
} catch (err) {
if (
err &&
typeof err === "object" &&
"code" in err &&
err.code === "MODULE_NOT_FOUND"
) {
if (err && err.code === "MODULE_NOT_FOUND") {
throw new Error(
`Have you forgotten to install \`@changesets/cli\` in "${cwd}"?`
);
+1
View File
@@ -3,6 +3,7 @@ import remarkParse from "remark-parse";
import remarkStringify from "remark-stringify";
// @ts-ignore
import mdastToString from "mdast-util-to-string";
import { exec } from "@actions/exec";
import { getPackages, Package } from "@manypkg/get-packages";
export const BumpLevels = {
+1614 -1615
View File
File diff suppressed because it is too large Load Diff