From c33dde3a11408da606423bca846aa18889087463 Mon Sep 17 00:00:00 2001 From: Peramanathan Sathyamoorthy Date: Fri, 8 Nov 2024 16:29:51 +0100 Subject: [PATCH] Enable pnpm in CI using corepack --- .github/workflows/release.yml | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb926c9..92a826b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,34 +26,29 @@ jobs: uses: actions/setup-node@v4 with: node-version: '22' - # registry-url: 'https://npm.pkg.github.com/' registry-url: 'https://registry.npmjs.org/' - # scope: '@adaptate' - - # - name: Configure .npmrc for GitHub Packages - # run: | - # echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc - # echo "@adaptate:registry=https://npm.pkg.github.com" >> ~/.npmrc - name: Install dependencies +<<<<<<< Updated upstream run: pnpm ci +======= + run: | + corepack enable + corepack prepare pnpm@latest --activate + pnpm ci +>>>>>>> Stashed changes - name: Build project run: npx turbo run build # pnpm will publish all packages in the monorepo - # --provenance for comprehensive metadata about their build process, enhancing their security and traceability + # --provenance for comprehensive metadata about the build process, + # enhancing the security and traceability of artifacts - name: Publish adaptate to npm env: NODE_AUTH_TOKEN: ${{ secrets.NPM_USER_TOKEN }} run: pnpm publish --recursive --provenance --access public - # - name: Publish @adaptate/core to npm - # working-directory: packages/core - # env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - # run: npm publish --provenance --access public - # - name: Publish @adaptate/core to GitHub Packages # working-directory: packages/core # env: