Skip to content

Commit

Permalink
separate into 3 packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Yolley committed Feb 21, 2024
1 parent 283c213 commit b37a381
Show file tree
Hide file tree
Showing 54 changed files with 11,434 additions and 35,285 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/gh-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
with:
node-version: 18
- run: npm ci
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- run: npm test
16 changes: 9 additions & 7 deletions .github/workflows/gh-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,24 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node ${{ matrix.node_version }}
- uses: pnpm/action-setup@v3
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 18
node-version: ${{ matrix.node-version }}
cache: "pnpm"
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: pnpm install
- name: Git Identity
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: npm ci
- name: Set Current Version
run: |
CURRENT_VERSION=$(node -p 'require("./lerna.json").version')
Expand Down Expand Up @@ -64,7 +66,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.CURRENT_VERSION }}
name: ${{ github.event.pull_request.title }}
name: v${{ env.CURRENT_VERSION }}
body: |
${{ github.event.pull_request.body }}
draft: false
Expand Down
Loading

0 comments on commit b37a381

Please sign in to comment.