Skip to content

Commit 9041646

Browse files
authored
chore: Update repo to use npm instead of yarn (#8)
1 parent 2f74809 commit 9041646

File tree

6 files changed

+8002
-4513
lines changed

6 files changed

+8002
-4513
lines changed

.github/workflows/unit-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- uses: actions/setup-node@v3
1919
with:
2020
node-version: '20.x'
21-
cache: 'yarn'
21+
cache: 'npm'
2222
- name: Install dependencies
23-
run: yarn --immutable
23+
run: npm install --immutable
2424
- name: Test Project
25-
run: yarn test
25+
run: npm run test

.github/workflows/update-dvc-sdk.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: '20.x'
17-
cache: 'yarn'
17+
cache: 'npm'
1818

1919
- name: Set Git author
2020
shell: bash
@@ -27,7 +27,7 @@ jobs:
2727
run: echo "BRANCH_NAME=update-dvc-sdk" >> $GITHUB_ENV
2828

2929
- name: Update @devcycle/js-client-sdk to latest
30-
run: yarn add @devcycle/js-client-sdk@latest
30+
run: npm install @devcycle/js-client-sdk@latest
3131

3232
- name: Check for changes to package.json
3333
run: echo "IS_UPDATED=$(git diff --name-only origin/main package.json)" >> $GITHUB_ENV
@@ -41,7 +41,7 @@ jobs:
4141
run: |
4242
git checkout -b "$BRANCH_NAME"
4343
git add package.json
44-
git add yarn.lock
44+
git add package-lock.json
4545
git commit -m "Update @devcycle/js-client-sdk to latest"
4646
git push --set-upstream origin "$BRANCH_NAME"
4747

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ When you run the example app and switch your identity between users, you'll be a
1111

1212

1313
## Running the example
14-
* Run `yarn install` in the project directory to install dependencies
14+
* Run `npm install` in the project directory to install dependencies
1515
* Create a `.env` file and set `DEVCYCLE_CLIENT_SDK_KEY` to the SDK Key for your environment.\
1616
You can find this under [Settings > Environments](https://app.devcycle.com/r/environments) on the DevCycle dashboard.
17-
* Run `yarn build` to build the project
17+
* Run `npm run build` to build the project
1818
* Open `index.html` to view it in your browser.
1919

2020
To experiment with targeting, update the user objects in `src/users.js` based on your targeting rules.
2121

22-
Re-run `yarn build` and refresh after making changes.
22+
Re-run `npm run build` and refresh after making changes.
2323

2424
## Running the tests
2525

26-
* Run `yarn test` to run the tests
26+
* Run `npm run test` to run the tests
2727
* See `src/devcycle.test.js` for examples of mocking the DevCycle SDK.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1 id="greeting">Loading...</h1>
1717
</div>
1818

1919
<div>
20-
<p>Edit <code>src/devcycle.js</code>, then run <code>yarn build</code> and refresh to reload.</p>
20+
<p>Edit <code>src/devcycle.js</code>, then run <code>npm run build</code> and refresh to reload.</p>
2121
<a
2222
class="App-link"
2323
href="https://docs.devcycle.com/sdk/client-side-sdks/javascript/"

0 commit comments

Comments
 (0)
close