Skip to content

Commit

Permalink
chore: Migrate from npm to yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
alanbsmith committed Sep 29, 2023
1 parent 236b43d commit 028efd1
Show file tree
Hide file tree
Showing 8 changed files with 6,033 additions and 10,144 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ jobs:

- name: Lint
shell: bash
run: npm run lint
run: yarn lint

- name: Type Check
shell: bash
run: npm run typecheck
run: yarn typecheck

- name: Run Unit Tests
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
# uses: changesets/action@v1
# with:
# # This expects you to have a script called release which does a build for your packages and calls changeset publish
# publish: npm run release
# publish: yarn release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ tmp
# dependencies
node_modules

# Prevent yarn.lock from accidentally being committed
yarn.lock

# IDE - VSCode
.vscode/*
!.vscode/settings.json
Expand Down
10 changes: 5 additions & 5 deletions MAINTAINING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# clone the repo
git clone https://github.com/workday/canvas-tokens.git
# install dependencies
npm install
yarn install
```

## Building Tokens
Expand All @@ -22,7 +22,7 @@ npx nx build @workday/canvas-tokens
Our token documentation and visual tests are rendered in Storybook. To start Storybook locally, run:

```sh
npm run storybook
yarn storybook
```

## Syncing with Tokens Studio
Expand All @@ -49,7 +49,7 @@ you're good to go.
### Syncing Token Configurations

```sh
npm run tokens-config sync
yarn tokens-config sync
```

By default, this script fetches the config files for base, brand, and system tokens from the Canvas
Expand All @@ -60,7 +60,7 @@ If you only want to update one type of tokens, you can specify it in the script.

```sh
# only sync base tokens
npm run tokens-config sync base
yarn tokens-config sync base
```

### Merging Configuration Updates
Expand All @@ -71,7 +71,7 @@ or you can run the script. The script below will create a pull request to merge
tokens-studio-sync branch into main. If a pull request already exists, it will fail.

```sh
npm run tokens-config create-pull
yarn tokens-config create-pull
```

## Testing
Expand Down
Loading

0 comments on commit 028efd1

Please sign in to comment.