diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index b6a0391..07a3593 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -21,9 +21,10 @@ jobs: fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: 18 - cache: "yarn" - - run: yarn + node-version: 23 + # Install dependencies with pnpm + - uses: pnpm/action-setup@v4 + #👇 Adds Chromatic as a step in the workflow - uses: chromaui/action@v1 # Options required for Chromatic's GitHub Action diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 9a3a3a1..17ce01d 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -13,21 +13,17 @@ jobs: steps: # Checkout the code - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Set up Node.js and pnpm - name: Set up Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 23 # Specify the Node.js version you use registry-url: https://npm.pkg.github.com - - name: Install pnpm - run: npm install -g pnpm - # Install dependencies with pnpm - - name: Install dependencies - run: pnpm install + - uses: pnpm/action-setup@v4 # Publish to GitHub Package Registry (prepublish script will run automatically) - name: Publish to GitHub Package Registry