Skip to content

Commit 83b5b59

Browse files
authored
chore: migrate yarn to pnpm (#170)
* chore: use pnpm instead of yarn * update gha-auto-dependabot-rebase
1 parent a37c29f commit 83b5b59

File tree

6 files changed

+3355
-3203
lines changed

6 files changed

+3355
-3203
lines changed

.github/workflows/rebase-on-push-to-main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
timeout-minutes: 5
1212
steps:
1313
- name: rebase
14-
uses: "bbeesley/[email protected].0"
14+
uses: "bbeesley/[email protected].2"
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-on-merge.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ on:
99
- beta
1010
jobs:
1111
release:
12-
runs-on: ubuntu-20.04
12+
runs-on: ubuntu-22.04
1313
concurrency: ${{ github.ref }}
1414
steps:
1515
- uses: actions/checkout@v3
16+
- uses: pnpm/action-setup@v2
17+
with:
18+
version: 7.6.0
1619
- uses: actions/setup-node@v3
1720
with:
1821
node-version: '16'
19-
- run: yarn install
20-
- run: yarn package
22+
cache: 'pnpm'
23+
- run: pnpm install --frozen-lockfile
24+
- run: pnpm package
2125
- name: Semantic Release
2226
id: semantic
23-
uses: cycjimmy/semantic-release-action@v2
27+
uses: cycjimmy/semantic-release-action@v3
2428
env:
2529
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2630
with:

.github/workflows/test-on-pull-request.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,21 @@ on:
44

55
jobs:
66
test:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-22.04
88
concurrency: ${{ github.ref }}
99
steps:
1010
- uses: actions/checkout@v3
11+
- uses: pnpm/action-setup@v2
12+
with:
13+
version: 7.6.0
1114
- uses: actions/setup-node@v3
1215
with:
1316
node-version: '16'
14-
- run: yarn install
15-
- run: yarn lint
17+
cache: 'pnpm'
18+
- run: pnpm install --frozen-lockfile
19+
- run: pnpm lint
1620
- name: commit linting changes
1721
uses: stefanzweifel/[email protected]
1822
with:
19-
commit_message: ":robot: yarn lint [skip ci]"
20-
- run: yarn test
23+
commit_message: ":robot: pnpm lint [skip ci]"
24+
- run: pnpm test

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"description": "Creates an Amazon App Mesh Virtual Node.",
55
"main": "index.js",
66
"scripts": {
7+
"preinstall": "npx only-allow pnpm",
78
"lint": "eslint **.js --fix",
89
"package": "ncc build index.js -o dist",
910
"test": "eslint **.js --fix && jest --config .jest.config.js"
@@ -28,6 +29,7 @@
2829
"@actions/core": "^1.9.0",
2930
"@aws-sdk/client-app-mesh": "^3.131.0",
3031
"@aws-sdk/util-waiter": "^3.127.0",
32+
"lodash": "^4.17.21",
3133
"yaml": "^2.0.0"
3234
},
3335
"devDependencies": {

0 commit comments

Comments
 (0)