diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5f2eca7..fe8baa7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,10 +5,6 @@ on: - main pull_request: -defaults: - run: - shell: bash - permissions: contents: read # for checkout@v4 @@ -17,18 +13,7 @@ jobs: name: 🧪 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - - uses: pnpm/action-setup@v3 - with: - version: 9 - - run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - uses: actions/cache@v4 - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: ${{ runner.os }}-pnpm-store- - - run: pnpm i + - uses: dyne/pnpm@v1 - run: npx playwright install --with-deps - run: pnpm t - uses: actions/upload-artifact@v4 @@ -49,19 +34,8 @@ jobs: pull-requests: write id-token: write steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - - uses: pnpm/action-setup@v3 - with: - version: 9 - - run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - uses: actions/cache@v4 - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: ${{ runner.os }}-pnpm-store- - - run: pnpm i - - run: npx semantic-release + - uses: dyne/pnpm@v1 + - run: pnpm semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -75,17 +49,7 @@ jobs: pages: write id-token: write steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - - uses: pnpm/action-setup@v3 - with: - version: 9 - - run: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - - uses: actions/cache@v4 - with: - path: ${{ env.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: ${{ runner.os }}-pnpm-store- + - uses: dyne/pnpm@v1 - uses: bitovi/github-actions-storybook-to-github-pages@v1 with: install_command: pnpm i diff --git a/package.json b/package.json index 2c8e21f..461a0b5 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "npm-run-all": "^4.1.5", "puppeteer": "^22.7.1", "rollup-plugin-node-polyfills": "^0.2.1", + "semantic-release": "^23.0.8", "stencil-tailwind-plugin": "^1.8.0", "storybook": "^8.0.8", "tailwindcss": "^3.4.3", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e7bf749..1d21455 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -117,6 +117,9 @@ importers: rollup-plugin-node-polyfills: specifier: ^0.2.1 version: 0.2.1 + semantic-release: + specifier: ^23.0.8 + version: 23.0.8(typescript@5.4.5) stencil-tailwind-plugin: specifier: ^1.8.0 version: 1.8.0(tailwindcss@3.4.3)(typescript@5.4.5)