-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
5,120 additions
and
5,907 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,73 +19,56 @@ jobs: | |
node: ['lts/-1', 'lts/*', 'current' ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set yarn cache | ||
run: yarn config set cache-folder ${{env.YARN_CACHE}} | ||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: yarn | ||
- name: Enable pnpm | ||
run: corepack enable pnpm | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
path: ${{env.YARN_CACHE}} | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- name: Setup Node.js ${{ matrix.node }} | ||
uses: actions/[email protected] | ||
with: | ||
node-version: ${{ matrix.node }} | ||
node-version: ${{ matrix.node }} | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile --ignore-engines | ||
run: corepack pnpm install | ||
- name: Run tests | ||
run: yarn test | ||
run: corepack pnpm run test | ||
- name: Upload code coverage | ||
uses: codecov/codecov-action@v3 | ||
uses: codecov/codecov-action@v5 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
fail_ci_if_error: true # optional (default = false) | ||
ci-cd-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set yarn cache | ||
run: yarn config set cache-folder ${{env.YARN_CACHE}} | ||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: yarn | ||
with: | ||
path: ${{env.YARN_CACHE}} | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
- name: Enable pnpm | ||
run: corepack enable pnpm | ||
- name: Setup Node.js ${{env.NODEJS}} | ||
uses: actions/setup-node@v3.8.1 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{env.NODEJS}} | ||
cache: 'pnpm' | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
run: corepack pnpm install | ||
- name: Run semantic-release | ||
run: yarn semantic-release --dry-run | ||
run: corepack pnpm semantic-release --dry-run | ||
deploy-pages: | ||
needs: build | ||
if: github.ref == 'refs/heads/master' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set yarn cache | ||
run: yarn config set cache-folder ${{env.YARN_CACHE}} | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3.8.1 | ||
- name: Enable pnpm | ||
run: corepack enable pnpm | ||
- name: Use Node.js ${{env.NODEJS}} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{env.NODEJS}} | ||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: yarn | ||
with: | ||
path: ${{env.YARN_CACHE}} | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
cache: 'pnpm' | ||
- name: Install semantic-release dependencies | ||
run: yarn install --frozen-lockfile | ||
run: corepack pnpm install | ||
- name: Build package | ||
run: yarn build:doc | ||
run: corepack pnpm run build:doc | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4.4.3 | ||
uses: JamesIves/github-pages-deploy-action@v4.7.2 | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: docs # The folder the action should deploy. | ||
|
@@ -96,23 +79,17 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set yarn cache | ||
run: yarn config set cache-folder ${{env.YARN_CACHE}} | ||
- name: Enable pnpm | ||
run: corepack enable pnpm | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3.8.1 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{env.NODEJS}} | ||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: yarn | ||
with: | ||
path: ${{env.YARN_CACHE}} | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }} | ||
cache: 'pnpm' | ||
- name: Install semantic-release dependencies | ||
run: yarn install --frozen-lockfile | ||
run: corepack pnpm install --frozen-lockfile | ||
- name: Build package | ||
run: yarn build | ||
run: corepack pnpm run build | ||
- name: Release | ||
run: yarn semantic-release | ||
run: corepack pnpm run semantic-release | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,22 +56,23 @@ | |
"@semantic-release/changelog": "^6.0.0", | ||
"@semantic-release/git": "^10.0.0", | ||
"@types/jest": "^29.5.0", | ||
"@types/node": "^20.1.0", | ||
"@types/node": "^22.0.0", | ||
"@types/rwlock": "^5.0.3", | ||
"@types/safe-regex": "^1.1.2", | ||
"husky": "^8.0.0", | ||
"husky": "^9.0.1", | ||
"jest": "^29.5.0", | ||
"last-release-git": "^0.0.3", | ||
"safe-regex": "~2.1.1", | ||
"semantic-release": "^22.0.0", | ||
"semantic-release": "^24.0.0", | ||
"ts-jest": "^29.1.0", | ||
"typedoc": "^0.25.0", | ||
"typedoc": "^0.27.0", | ||
"typescript": "^5.0.4", | ||
"validate-commit-msg": "^2.14.0" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"commit-msg": "validate-commit-msg" | ||
} | ||
} | ||
}, | ||
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0" | ||
} |
Oops, something went wrong.