Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update yarn to use v4.5 #300

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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://[email protected]/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": "[email protected]"
}
Loading
Loading