Skip to content

Commit

Permalink
chore: bump pnpm and GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Dec 13, 2023
1 parent fc80d47 commit 9342926
Show file tree
Hide file tree
Showing 8 changed files with 3,568 additions and 2,942 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,21 @@ jobs:
- 14
- 16
- 18
- 20
os:
- macos-latest
- windows-latest
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

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

- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

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

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

- name: Install Dependencies
run: pnpm i

- name: Build Docs
run: yarn docs:build
run: pnpm docs:build

- name: Add misc files
run: |
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,18 @@ 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
uses: actions/setup-node@v3
- name: Setup Node.js LTS
uses: actions/setup-node@v4
with:
node-version: 16
node-version: lts/*
cache: pnpm

- name: Install Dependencies
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/size-limit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ jobs:
env:
CI_JOB_NUMBER: 1
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

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

- name: Install Dependencies
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ on:
push:
branches:
- main
# eslint-disable-next-line yml/no-empty-mapping-value
pull_request_target:
pull_request_target: null

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check Branch
id: branch
if: ${{ github.ref == 'refs/heads/main' }}
run: |
echo "::set-output name=args::--prod"
echo "::set-output name=comment::false"
echo "args=--prod" >> $GITHUB_OUTPUT
echo "comment=false" >> $GITHUB_OUTPUT
- name: Deploy
uses: amondnet/vercel-action@v25
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![GitHub Actions](https://github.com/un-ts/domiso/workflows/CI/badge.svg)](https://github.com/un-ts/domiso/actions/workflows/ci.yml)
[![Codecov](https://img.shields.io/codecov/c/github/un-ts/domiso.svg)](https://codecov.io/gh/un-ts/domiso)
[![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/un-ts/domiso.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/un-ts/domiso/context:javascript)
[![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%2Fun-ts%2Fdomiso%2Fmain%2Fpackage.json)](https://github.com/plantain-00/type-coverage)
[![npm](https://img.shields.io/npm/v/domiso.svg)](https://www.npmjs.com/package/domiso)
[![GitHub Release](https://img.shields.io/github/release/un-ts/domiso)](https://github.com/un-ts/domiso/releases)
Expand Down Expand Up @@ -58,6 +57,8 @@ sanitizeSvg(`<svg>SVG content</svg>`)

## Backers

[![Backers](https://raw.githubusercontent.com/1stG/static/master/sponsors.svg)](https://github.com/sponsors/JounQin)

| 1stG | RxTS | UnTS |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------- |
| [![1stG Open Collective backers and sponsors](https://opencollective.com/1stG/individuals.svg)](https://opencollective.com/1stG) | [![RxTS Open Collective backers and sponsors](https://opencollective.com/rxts/individuals.svg)](https://opencollective.com/rxts) | [![UnTS Open Collective backers and sponsors](https://opencollective.com/unts/individuals.svg)](https://opencollective.com/unts) |
Expand Down
19 changes: 12 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "JounQin (https://www.1stG.me) <admin@1stg.me>",
"funding": "https://opencollective.com/unts",
"license": "MIT",
"packageManager": "pnpm@7.11.0",
"packageManager": "pnpm@8.11.0",
"engines": {
"node": "^12.20.0 || ^14.18.0 || >=16.0.0"
},
Expand Down Expand Up @@ -55,18 +55,18 @@
"devDependencies": {
"@1stg/app-config": "^7.2.1",
"@1stg/lib-config": "^10.2.1",
"@changesets/changelog-github": "^0.4.6",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.24.4",
"@pkgr/webpack": "^3.4.0",
"@pkgr/webpack-mdx": "^2.2.0",
"@size-limit/preset-small-lib": "^8.1.0",
"@types/mdx": "^2.0.2",
"@types/mdx": "^2.0.3",
"@types/node": "^18.7.18",
"@types/react": "^18.0.20",
"@types/react-dom": "^18.0.6",
"@types/web": "^0.0.72",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/web": "^0.0.93",
"@vitest/coverage-istanbul": "^0.23.2",
"domiso": "link:.",
"domiso": "link:",
"github-markdown-css": "^5.1.0",
"jsdom": "^20.0.0",
"react": "^18.2.0",
Expand All @@ -89,6 +89,11 @@
},
"types": "./lib/index.d.ts"
},
"pnpm": {
"overrides": {
"sh-syntax": "^0.4.1"
}
},
"size-limit": [
{
"path": "lib/index.js",
Expand Down
Loading

0 comments on commit 9342926

Please sign in to comment.