Skip to content

Commit

Permalink
use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Sep 24, 2023
1 parent 32c54a2 commit 29a1db7
Show file tree
Hide file tree
Showing 6 changed files with 435 additions and 373 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Use Node 16
- name: Use Node 18
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Get Yarn Cache Directory Path
id: cache_keys
run: |
echo "CACHE_KEY=${{ runner.os }}-node-16-yarn-" >> $GITHUB_OUTPUT
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2.2.4

- name: Cache Dependencies
uses: actions/cache@v3
Expand All @@ -37,7 +36,7 @@ jobs:
${{ runner.os }}-${{ github.sha }}
- name: Install Dependencies
run: yarn install --frozen-lockfile --prefer-offline
run: pnpm install --frozen-lockfile


release:
Expand Down Expand Up @@ -72,10 +71,10 @@ jobs:
if: steps.determine_tag.outputs.tag != ''
run: |
echo "Publishing to ${{ steps.determine_tag.outputs.tag }} tag"
npm publish --tag ${{ steps.determine_tag.outputs.tag }}
pnpm publish --tag ${{ steps.determine_tag.outputs.tag }}
- name: Publish to latest
if: steps.determine_tag.outputs.tag == ''
run: |
echo "Publishing to latest"
npm publish
pnpm publish
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
"sucrase": "3.23.0"
},
"devDependencies": {
"codice": "^0.1.0",
"codice": "^0.2.0",
"devjar": "link:./",
"lodash-es": "^4.17.21",
"next": "^13.2.0",
"next": "^13.5.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sugar-high": "^0.5.0"
}
"sugar-high": "^0.5.2"
},
"packageManager": "pnpm@7.33.5"
}

0 comments on commit 29a1db7

Please sign in to comment.