diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d00e2e..8ab3ef4 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 90a374e..f00cbe1 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 }} diff --git a/package.json b/package.json index 6551da8..32d9202 100644 --- a/package.json +++ b/package.json @@ -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" },