Skip to content

Commit

Permalink
use yarn instead of npm
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinmuenster committed Apr 24, 2023
1 parent 8f8c7e9 commit beabc15
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "npm"
cache: "yarn"

- run: npm install
- run: npm run lint
- run: npm run check
- run: npm run build
- run: yarn
- run: yarn lint
- run: yarn check
- run: yarn build
8 changes: 4 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "npm"
cache: "yarn"

- run: npm install
- run: npm run build
- run: yarn
- run: yarn build
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: npm run release
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"lint": "eslint . --ext .ts,.tsx,.js,.jsx",
"format": "prettier --write .",
"check": "tsc",
"release": "npm run check && npm run build && changeset publish",
"release": "yarn check && yarn build && changeset publish",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
Expand Down

0 comments on commit beabc15

Please sign in to comment.