Skip to content

Commit

Permalink
Switch from Yarn to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenbleasel committed Oct 14, 2023
1 parent 13987a8 commit 4afeb5c
Show file tree
Hide file tree
Showing 5 changed files with 5,479 additions and 4,736 deletions.
37 changes: 28 additions & 9 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,43 @@ jobs:
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
# The list of steps that the action will go through
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Prepare repository
run: git fetch --unshallow --tags
- name: Use Node.js
uses: actions/setup-node@v1

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache node modules
uses: actions/cache@v1

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: node_modules
key: yarn-deps-${{ hashFiles('yarn.lock') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
yarn-deps-${{ hashFiles('yarn.lock') }}
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install --frozen-lockfile
pnpm install --frozen-lockfile
npx auto shipit
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
## Installation

```bash
yarn add friendlier-words
pnpm add friendlier-words
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"registry": "https://registry.npmjs.org/"
},
"scripts": {
"prepublishOnly": "yarn build",
"prepublishOnly": "pnpm build",
"build": "tsup src",
"dev": "tsup src --watch",
"test": "node test/test.js"
Expand Down
Loading

0 comments on commit 4afeb5c

Please sign in to comment.