Skip to content

Commit

Permalink
chore: bump pnpm and node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 15, 2023
1 parent 2596839 commit 4d7540c
Show file tree
Hide file tree
Showing 10 changed files with 2,040 additions and 1,974 deletions.
4 changes: 2 additions & 2 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://unpkg.com/@changesets/config@1.6.0/schema.json",
"$schema": "https://unpkg.com/@changesets/config/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "rx-ts/deeplx"
"repo": "un-ts/deeplx"
}
],
"commit": false,
Expand Down
2 changes: 1 addition & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"node": "16",
"node": "18",
"sandboxes": []
}
2 changes: 0 additions & 2 deletions .github/FUNDING.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
strategy:
matrix:
node:
- 14
- 16
- 18
- 20
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -50,7 +50,6 @@ jobs:
uses: codecov/codecov-action@v3

- name: Codacy Coverage
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) -- -r coverage/*.json
env:
CODACY_ACCOUNT_TOKEN: ${{ secrets.CODACY_ACCOUNT_TOKEN }}
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
uses: codacy/codacy-coverage-reporter-action@v1
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
12 changes: 5 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Setup Node.js 16.x
uses: actions/setup-node@v3
- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: lts/*
cache: pnpm

- name: Install Dependencies
run: pnpm i --frozen-lockfile --prefer-offline
run: pnpm i --frozen-lockfile

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

### Patch Changes

- [#4](https://github.com/rx-ts/deeplx/pull/4) [`f7a6eb8`](https://github.com/rx-ts/deeplx/commit/f7a6eb8c1cd6f069969db4667f195e0ae195a34b) Thanks [@JounQin](https://github.com/JounQin)! - feat: handle empty text earlier
- [#4](https://github.com/un-ts/deeplx/pull/4) [`f7a6eb8`](https://github.com/un-ts/deeplx/commit/f7a6eb8c1cd6f069969db4667f195e0ae195a34b) Thanks [@JounQin](https://github.com/JounQin)! - feat: handle empty text earlier

## 0.1.0

### Minor Changes

- [`b65e4d7`](https://github.com/rx-ts/deeplx/commit/b65e4d77ad168dcb1962053bf8545f135074ffab) Thanks [@JounQin](https://github.com/JounQin)! - refactor: support `auto` for source language
- [`b65e4d7`](https://github.com/un-ts/deeplx/commit/b65e4d77ad168dcb1962053bf8545f135074ffab) Thanks [@JounQin](https://github.com/JounQin)! - refactor: support `auto` for source language

* [`0882e36`](https://github.com/rx-ts/deeplx/commit/0882e364ffcc2efe2ec68cfe6e3284af82a47714) Thanks [@JounQin](https://github.com/JounQin)! - feat: first blood, should just work
* [`0882e36`](https://github.com/un-ts/deeplx/commit/0882e364ffcc2efe2ec68cfe6e3284af82a47714) Thanks [@JounQin](https://github.com/JounQin)! - feat: first blood, should just work
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# DeepL Translate

[![GitHub Actions](https://github.com/rx-ts/deeplx/workflows/CI/badge.svg)](https://github.com/rx-ts/deeplx/actions/workflows/ci.yml)
[![Codecov](https://img.shields.io/codecov/c/github/rx-ts/deeplx.svg)](https://codecov.io/gh/rx-ts/deeplx)
[![Codacy Grade](https://img.shields.io/codacy/grade/1d00ac27c99d4412bb70211e258706ab)](https://app.codacy.com/gh/rx-ts/deeplx)
[![GitHub Actions](https://img.shields.io/github/actions/workflow/status/un-ts/deeplx/ci.yml)](https://github.com/un-ts/deeplx/actions/workflows/ci.yml)
[![Codecov](https://img.shields.io/codecov/c/github/un-ts/deeplx.svg)](https://codecov.io/gh/un-ts/deeplx)
[![Codacy Grade](https://img.shields.io/codacy/grade/e3d752491a664d889c5bdfb6ffeb6cbb)](https://app.codacy.com/gh/un-ts/deeplx)
[![type-coverage](https://img.shields.io/badge/dynamic/json.svg?label=type-coverage&prefix=%E2%89%A5&suffix=%&query=$.typeCoverage.atLeast&uri=https%3A%2F%2Fraw.githubusercontent.com%2Frx-ts%2Fdeeplx%2Fmaster%2Fpackage.json)](https://github.com/plantain-00/type-coverage)
[![npm](https://img.shields.io/npm/v/deeplx.svg)](https://www.npmjs.com/package/deeplx)
[![GitHub Release](https://img.shields.io/github/release/rx-ts/deeplx)](https://github.com/rx-ts/deeplx/releases)

[![David Peer](https://img.shields.io/david/peer/rx-ts/deeplx.svg)](https://david-dm.org/rx-ts/deeplx?type=peer)
[![David](https://img.shields.io/david/rx-ts/deeplx.svg)](https://david-dm.org/rx-ts/deeplx)
[![David Dev](https://img.shields.io/david/dev/rx-ts/deeplx.svg)](https://david-dm.org/rx-ts/deeplx?type=dev)
[![GitHub Release](https://img.shields.io/github/release/un-ts/deeplx)](https://github.com/un-ts/deeplx/releases)

[![Conventional Commits](https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)
Expand Down
2 changes: 1 addition & 1 deletion api/translate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default async (
POST {"text": "have a try", "source_lang": "auto", "target_lang": "ZH"} to /translate
https://github.com/rx-ts/deeplx`)
https://github.com/un-ts/deeplx`)
return
}

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
"type-coverage": "^2.21.1",
"typescript": "^4.7.2"
},
"packageManager": "pnpm@8.12.1",
"typeCoverage": {
"atLeast": 100,
"cache": true,
Expand Down
Loading

0 comments on commit 4d7540c

Please sign in to comment.