Skip to content

Commit

Permalink
added yarnrc
Browse files Browse the repository at this point in the history
  • Loading branch information
priya-kinthali committed Dec 29, 2023
1 parent 7d9921d commit ad7d629
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 9,554 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/issue-902-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['18.x']
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'

- name: Cache node modules
uses: actions/cache@v3
with:
path: ~/.yarn-cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
- run: yarn postinstall
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cache-folder "./.yarn-cache"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" ",
"postinstall": "node index.js"
"postinstall": "echo 'postinstall script ran!'"
},
"author": "",
"license": "ISC",
Expand Down
Loading

0 comments on commit ad7d629

Please sign in to comment.