Skip to content

Commit

Permalink
fix(deps): migrate a package manager to pnpm (browser-actions#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
ueokande authored Sep 17, 2023
1 parent e18083a commit 5fa5696
Show file tree
Hide file tree
Showing 4 changed files with 1,184 additions and 1,125 deletions.
21 changes: 8 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn build
- run: yarn package
node-version-file: 'package.json'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm build
- run: pnpm package
- uses: actions/upload-artifact@v3
with:
name: dist
Expand Down
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
"version": "1.2.2",
"description": "Set up your GitHub Actions workflow with a specific version of chromium",
"main": "dist/index.js",
"packageManager": "pnpm@8.7.5",
"engines": {
"node": "20.6.1"
},
"dependencies": {
"@actions/core": "^1.10.0",
"@actions/exec": "^1.1.1",
"@actions/http-client": "^2.1.1",
"@actions/io": "^1.1.3",
"@actions/tool-cache": "^1.7.1"
},
Expand Down
Loading

0 comments on commit 5fa5696

Please sign in to comment.