Skip to content

Commit

Permalink
chore: update yarn to use v4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
kmye committed Dec 7, 2024
1 parent 7c2dea6 commit 5792924
Show file tree
Hide file tree
Showing 7 changed files with 12,421 additions and 8,747 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,29 +18,35 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v2
uses: actions/checkout@v4

- uses: actions/setup-node@v2
- name: Enable Corepack
run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '20.x'
cache: 'yarn'

- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- uses: c-hive/gha-yarn-cache@v1
- name: Yarn
run: cd ExampleProject && yarn install
- name: Yarn Install on root
run: yarn install

- name: Yarn Install Example Project
run: yarn install:example-project

- name: Cache Gradle Wrapper
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}

- name: Cache Gradle Dependencies
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
Expand Down
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,14 @@ buck-out/

# Bundle artifact
*.jsbundle

# Yarn files

# Ignore yarn files.
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
9 changes: 9 additions & 0 deletions ExampleProject/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,12 @@ yarn-error.log

# testing
/coverage

# Ignore yarn files.
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*
16,354 changes: 9,637 additions & 6,717 deletions ExampleProject/yarn.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@
"url": "git+ssh://git@github.com/GantMan/jail-monkey.git"
},
"scripts": {
"install:example-project": "cd ExampleProject && yarn install",
"shipit": "np",
"test": "echo Not yet",
"flow-check": "npx flow check-contents < jailmonkey.js.flow",
"ts-check": "npx tsc jailmonkey.d.ts --noEmit"
},
"typings": "./jailmonkey.d.ts",
"version": "2.8.1"
"version": "2.8.1",
"packageManager": "yarn@4.5.3"
}
Loading

0 comments on commit 5792924

Please sign in to comment.