Skip to content

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sz-piotr committed Apr 21, 2024
1 parent 46f000c commit b98d241
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 93 deletions.
5 changes: 0 additions & 5 deletions .changeset/five-cycles-type.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/lemon-plants-march.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/proud-queens-invite.md

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/release-canary.yml

This file was deleted.

29 changes: 11 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
branches:
- master
- main

jobs:
release:
Expand All @@ -12,32 +12,25 @@ jobs:
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the changed files back to the repository.
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN2 }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: "18.x"
cache: "pnpm"

- run: pnpm install --frozen-lockfile

- name: Either creates release PR or publishes packages to npm
id: changesets
uses: changesets/action@v1
with:
version: pnpm changeset:version && pnpm install
publish: pnpm changeset:release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN2 }}

- name: Push docs if a publish happens
if: steps.changesets.outputs.published == 'true'
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: docs-stable
- run: pnpm build
- run: |
cat << EOF > "$HOME/.npmrc"
//registry.npmjs.org/:_authToken=$NPM_TOKEN2
EOF
- run: pnpm changeset:release
2 changes: 1 addition & 1 deletion examples/example-mocha/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:fix": "pnpm lint:fix && pnpm format:fix && pnpm test && pnpm typecheck"
},
"dependencies": {
"earl": "workspace:^1.1.0",
"earl": "workspace:^1.2.0",
"example-plugin": "workspace:^1.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/example-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"test:fix": "pnpm lint:fix && pnpm format:fix && pnpm typecheck"
},
"devDependencies": {
"earl": "workspace:^1.1.0"
"earl": "workspace:^1.2.0"
},
"peerDependencies": {
"earl": "workspace:^1.1.0"
"earl": "workspace:^1.2.0"
}
}
2 changes: 1 addition & 1 deletion examples/example-uvu/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test:fix": "pnpm lint:fix && pnpm format:fix && pnpm test && pnpm typecheck"
},
"dependencies": {
"earl": "workspace:^1.1.0",
"earl": "workspace:^1.2.0",
"example-plugin": "workspace:^1.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/getting-started/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/node": "^18.15.0",
"earl": "workspace:^1.1.0",
"earl": "workspace:^1.2.0",
"mocha": "10.2.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@babel/core": "^7.21.3",
"@babel/preset-env": "^7.20.2",
"@babel/register": "^7.21.0",
"earl": "workspace:^1.1.0",
"earl": "workspace:^1.2.0",
"error-stack-parser": "^2.1.4",
"esbuild": "^0.17.12",
"esbuild-register": "^3.4.2",
Expand Down
11 changes: 11 additions & 0 deletions packages/earl/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# earl

## 1.2.0

### Minor Changes

- 46f000c: Add .clear to mocks which clears the calls array. Fixes .reset not clearing the calls.
- e5ce81a: Add mockObject.reset which resets all functions on MockObject

### Patch Changes

- ce60bac: Improve performance by making some error messages lazy

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/earl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"author": "Kris Kaczor <chris@kaczor.io>",
"license": "MIT",
"version": "1.1.0",
"version": "1.2.0",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"exports": {
Expand Down
9 changes: 9 additions & 0 deletions packages/website/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# website

## 1.0.4

### Patch Changes

- Updated dependencies [46f000c]
- Updated dependencies [ce60bac]
- Updated dependencies [e5ce81a]
- earl@1.2.0

## 1.0.3

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/website/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "website",
"private": true,
"version": "1.0.3",
"version": "1.0.4",
"scripts": {
"start": "vitepress dev docs",
"format": "prettier --check .",
Expand All @@ -16,7 +16,7 @@
"generate:example-tests": "ts-node -T ./generators/test-examples/index.ts"
},
"dependencies": {
"earl": "workspace:^1.1.0",
"earl": "workspace:^1.2.0",
"@algolia/client-search": "^4.15.0",
"@microsoft/tsdoc": "^0.14.2",
"@types/lodash": "^4.14.191",
Expand Down
16 changes: 10 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b98d241

Please sign in to comment.