Skip to content

Commit

Permalink
use pnpm for GitHub actions (#8431)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Cousens <[email protected]>
  • Loading branch information
dcousens and dcousens authored Mar 28, 2023
1 parent fbb5664 commit 460824c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:

- uses: ./.github/actions/ci-setup

- run: yarn build
- run: pnpm build

- name: git config
run: |
git config --global user.name 'Keystonejs Release Bot'
git config --global user.email '[email protected]'
- name: npm publish, git tag
run: yarn changeset publish --tag latest
run: pnpm changeset publish --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- uses: changesets/action@v1
with:
version: yarn ci:version-packages
version: pnpm ci:version-packages
env:
# use a different GitHub account to have the CI run on push
GITHUB_TOKEN: ${{ secrets.KEYSTONE_RELEASE_BOT_GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ For more information on the reasoning behind using certain tooling, please refer

### Version management

Keystone uses @noviny's [@changesets/cli](https://github.com/noviny/changesets) to track package versions and publish packages.
Keystone uses @noviny's [@changesets/cli](https://github.com/changesets/changesets) to track package versions and publish packages.
This tool allows each PR to indicate which packages need a version bump along with a changelog snippet.
This information is then collated when performing a release to update package versions and `CHANGELOG.md` files.

#### What all contributors need to do

- Make your changes (as per usual)
- Before you make a Pull Request, run the `yarn changeset` command and answer the questions that are asked. It will want to know:
- Before you make a Pull Request, run the `pnpm changeset` command and answer the questions that are asked. It will want to know:
- which packages you want to publish
- what version you are releasing them at
- a message to summarise the changes (this message will be written to the changelog of bumped packages)
Expand Down

0 comments on commit 460824c

Please sign in to comment.