Skip to content

Commit

Permalink
feat: 1.pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
JuckZ committed Mar 5, 2023
1 parent e5e02c4 commit 70d4b4f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 17,713 deletions.
20 changes: 10 additions & 10 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = tab
indent_size = 4
tab_width = 4
# top-most EditorConfig file
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 4
tab_width = 4
34 changes: 28 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,44 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18.14.x
cache: 'npm'

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install
run: npm -D i
run: pnpm -D i

- name: Test
run: npm run report:coverage
run: pnpm run report:coverage
- name: Build
id: build
run: |
npm run build --if-present
pnpm run build --if-present
cp manifest.json dest
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v3
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
Loading

0 comments on commit 70d4b4f

Please sign in to comment.