Skip to content

Commit 5fa5696

Browse files
authored
fix(deps): migrate a package manager to pnpm (browser-actions#384)
1 parent e18083a commit 5fa5696

File tree

4 files changed

+1184
-1125
lines changed

4 files changed

+1184
-1125
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v3
14-
- name: Get yarn cache directory path
15-
id: yarn-cache-dir-path
16-
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
17-
- uses: actions/cache@v3
14+
- uses: pnpm/action-setup@v2
15+
- uses: actions/setup-node@v3
1816
with:
19-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
20-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
21-
restore-keys: |
22-
${{ runner.os }}-yarn-
23-
24-
- run: yarn install --frozen-lockfile
25-
- run: yarn lint
26-
- run: yarn build
27-
- run: yarn package
17+
node-version-file: 'package.json'
18+
cache: 'pnpm'
19+
- run: pnpm install --frozen-lockfile
20+
- run: pnpm lint
21+
- run: pnpm build
22+
- run: pnpm package
2823
- uses: actions/upload-artifact@v3
2924
with:
3025
name: dist

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
"version": "1.2.2",
44
"description": "Set up your GitHub Actions workflow with a specific version of chromium",
55
"main": "dist/index.js",
6+
"packageManager": "[email protected]",
7+
"engines": {
8+
"node": "20.6.1"
9+
},
610
"dependencies": {
711
"@actions/core": "^1.10.0",
812
"@actions/exec": "^1.1.1",
13+
"@actions/http-client": "^2.1.1",
914
"@actions/io": "^1.1.3",
1015
"@actions/tool-cache": "^1.7.1"
1116
},

0 commit comments

Comments
 (0)