Skip to content

Commit 8c0c8f7

Browse files
authored
upgrade to yarn 2 and use resolutions to block vulnerable package versions (#2239)
* upgrade to yarn 2 and use resolutions to block vulnerable package versions * rm deprecated .yarnrc * rm yarnpath * try committing yarn binary to repo * try corepack enable for gha * update run tests cmd * rm yarnpath * rm npm i yarn * update all pipelines * rm superfluous history types
1 parent 5c6dea9 commit 8c0c8f7

16 files changed

Lines changed: 23156 additions & 17820 deletions

.github/workflows/deployFreighterApiBeta.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
uses: actions/checkout@v4
2020
with:
2121
ref: release/${{ github.event.inputs.release }}
22+
- name: Enable Corepack
23+
run: corepack enable
2224
- name: Build package
2325
uses: actions/setup-node@v4
2426
with:
@@ -41,7 +43,10 @@ jobs:
4143
SLACK_CHANNEL: team-wallet-eng
4244
SLACK_COLOR: "#70E1C8"
4345
SLACK_ICON: https://github.com/stellar/freighter/blob/master/docs/static/images/logo.png?size=48
44-
SLACK_MESSAGE: "https://github.com/stellar/freighter/releases/tag/${{ github.event.inputs.release }}-beta.${{ github.event.inputs.version }}"
46+
SLACK_MESSAGE:
47+
"https://github.com/stellar/freighter/releases/tag/${{
48+
github.event.inputs.release }}-beta.${{ github.event.inputs.version
49+
}}"
4550
SLACK_TITLE: "@stellar/freighter-api beta has been deployed to npm!"
4651
SLACK_USERNAME: Freighter Administrative Assistant
4752
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

.github/workflows/deployFreighterApiProduction.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v4
16+
- name: Enable Corepack
17+
run: corepack enable
1618
- name: Build package
1719
uses: actions/setup-node@v4
1820
with:

.github/workflows/runSnapshots.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ jobs:
2626
runs-on: macos-latest
2727
steps:
2828
- uses: actions/checkout@v4
29+
- run: corepack enable
2930
- uses: actions/setup-node@v4
3031
with:
3132
node-version: 22
3233
- name: Checkout code
3334
uses: actions/checkout@v4
3435
with:
3536
ref: ${{ github.event.inputs.branch }}
36-
- run: npm install -g yarn && yarn
37+
- run: yarn
3738
- run: npx playwright install --with-deps chromium
3839
- run: yarn setup
3940
- run: yarn build:freighter-api

.github/workflows/runTests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ jobs:
1212
runs-on: macos-latest
1313
steps:
1414
- uses: actions/checkout@v4
15+
- run: corepack enable
1516
- uses: actions/setup-node@v4
1617
with:
1718
node-version: 22
18-
- run: npm install -g yarn && yarn
19+
- run: yarn
1920
- run: npx playwright install --with-deps chromium
2021
- run: yarn setup
2122
- run: yarn build:freighter-api

.github/workflows/submitBeta.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ jobs:
7676
value:
7777
${{ github.event.inputs.release }}.${{ github.event.inputs.version
7878
}}
79+
- name: Enable Corepack
80+
run: corepack enable
7981
- name: Build extension
8082
uses: actions/setup-node@v4
8183
with:

.github/workflows/submitProduction.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
file: ./extension/public/static/manifest/v3.json
5353
field: version
5454
value: ${{ steps.manifest_version.outputs.replaced }}
55+
- name: Enable Corepack
56+
run: corepack enable
5557
- name: Build extension
5658
uses: actions/setup-node@v4
5759
with:

.github/workflows/submitSafari.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
file: ./extension/public/static/manifest/v3.json
5454
field: version
5555
value: ${{ steps.manifest_version.outputs.replaced }}
56+
- name: Enable Corepack
57+
run: corepack enable
5658
- name: Build extension
5759
uses: actions/setup-node@v4
5860
with:

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ node_modules
2121
.env.development.local
2222
.env.test.local
2323
.env.production.local
24+
.yarn
25+
.yarn/*
2426

2527
npm-debug.log*
2628
yarn-debug.log*

.yarnrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarnrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
enableScripts: false
2+
3+
nodeLinker: node-modules

0 commit comments

Comments
 (0)