Skip to content

Commit c33dde3

Browse files
committed
Enable pnpm in CI using corepack
1 parent 8506953 commit c33dde3

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,34 +26,29 @@ jobs:
2626
uses: actions/setup-node@v4
2727
with:
2828
node-version: '22'
29-
# registry-url: 'https://npm.pkg.github.com/'
3029
registry-url: 'https://registry.npmjs.org/'
31-
# scope: '@adaptate'
32-
33-
# - name: Configure .npmrc for GitHub Packages
34-
# run: |
35-
# echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
36-
# echo "@adaptate:registry=https://npm.pkg.github.com" >> ~/.npmrc
3730

3831
- name: Install dependencies
32+
<<<<<<< Updated upstream
3933
run: pnpm ci
34+
=======
35+
run: |
36+
corepack enable
37+
corepack prepare pnpm@latest --activate
38+
pnpm ci
39+
>>>>>>> Stashed changes
4040

4141
- name: Build project
4242
run: npx turbo run build
4343

4444
# pnpm will publish all packages in the monorepo
45-
# --provenance for comprehensive metadata about their build process, enhancing their security and traceability
45+
# --provenance for comprehensive metadata about the build process,
46+
# enhancing the security and traceability of artifacts
4647
- name: Publish adaptate to npm
4748
env:
4849
NODE_AUTH_TOKEN: ${{ secrets.NPM_USER_TOKEN }}
4950
run: pnpm publish --recursive --provenance --access public
5051

51-
# - name: Publish @adaptate/core to npm
52-
# working-directory: packages/core
53-
# env:
54-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55-
# run: npm publish --provenance --access public
56-
5752
# - name: Publish @adaptate/core to GitHub Packages
5853
# working-directory: packages/core
5954
# env:

0 commit comments

Comments
 (0)