-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from gadget-inc/pnpm
Switch to using pnpm for development
- Loading branch information
Showing
8 changed files
with
4,788 additions
and
4,859 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
name: 'Setup test environment' | ||
description: '' | ||
name: "Setup test environment" | ||
description: "" | ||
inputs: {} | ||
outputs: {} | ||
runs: | ||
using: "composite" | ||
steps: | ||
using: "composite" | ||
steps: | ||
- uses: cachix/install-nix-action@v20 | ||
- run: nix flake check | ||
shell: bash | ||
- name: Add Gadget yarn registry | ||
- name: Add Gadget npm registry | ||
shell: nix develop -c bash -eo pipefail -l {0} | ||
run: npm config set @gadget-client:registry https://registry.gadget.dev/npm | ||
- name: Install dependencies with yarn install | ||
- name: Install dependencies with pnpm | ||
shell: nix develop -c bash -eo pipefail -l {0} | ||
run: yarn install | ||
run: pnpm install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
# Testing | ||
|
||
Gotta build the package, which you can do once with `yarn build`, or watch your local development directory and rebuild when things change with `yarn watch`. | ||
Gotta build the package, which you can do once with `pnpm build`, or watch your local development directory and rebuild when things change with `pnpm watch`. | ||
|
||
Then gotta use it somewhere, which tends to be easiest in a project. I use `yarn link` for this. | ||
Then gotta use it somewhere, which tends to be easiest in a project. I use `pnpm link` for this. | ||
|
||
# Releasing | ||
|
||
Releases are managed automatically by Github Actions. To create a new release, follow these setps: | ||
Releases are managed automatically by Github Actions. To create a new release, follow these steps: | ||
|
||
1. Run `npm version minor|major|patch`. This will change the version in the package.json and create a new git commit changing it. | ||
1. Run `npm version minor|major|patch`. This will change the version in the package.json and create a new git commit changing it. | ||
2. Push this commit to the `main` branch. CI will run the tests, then run the release workflow, which publishes to NPM, create a Github release, and creates a git tag for the version. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.