diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5f2eca7..8893d3a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,18 +17,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/workflows/.github/workflows/setup-pnpm.yml@main - run: npx playwright install --with-deps - run: pnpm t - uses: actions/upload-artifact@v4 @@ -61,7 +50,7 @@ jobs: key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} restore-keys: ${{ runner.os }}-pnpm-store- - run: pnpm i - - run: npx semantic-release + - run: pnpm semantic-release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} 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)