Skip to content

Commit

Permalink
Enable pnpm in CI using corepack
Browse files Browse the repository at this point in the history
  • Loading branch information
p10ns11y committed Nov 8, 2024
1 parent 8506953 commit c33dde3
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c33dde3

Please sign in to comment.