Skip to content

Commit

Permalink
cicd: use the snapshot tag instead of next for snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
chmanie committed Mar 19, 2024
1 parent 3b52d22 commit e653ef5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ jobs:
CI: true
NODE_OPTIONS: --max-old-space-size=4096
- name: Version snapshot
run: npx changeset version --snapshot next && pnpm install --lockfile-only
run: npx changeset version --snapshot snapshot && pnpm install --lockfile-only
- name: Publish snapshot to npm
run: npx changeset publish --snapshot --tag next --no-git-tag
run: npx changeset publish --snapshot --tag snapshot --no-git-tag
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You can run `pnpm lint`, `pnpm typecheck`, `pnpm test` and `pnpm build` in the r

## Creating a main release

colonyJS is using [changesets]() to create releases. Here's the workflow:
colonyJS is using [changesets](https://github.com/changesets/changesets) to create releases. Here's the workflow:

1) Create a PR and add a [changeset](https://github.com/changesets/changesets/blob/main/docs/adding-a-changeset.md) within the PR
2) Have the PR reviewed and merged into `main`
Expand All @@ -36,12 +36,12 @@ colonyJS is using [changesets]() to create releases. Here's the workflow:

## Creating a snapshot (development) release

1) Push your desired changes to a branch named `next-xxx` (replace `xxx` with your feature or custom name)
1) Push your desired changes to a new branch (**do not forget to add a changeset - see above**)
2) Use the "Release a snapshot" action under "Actions"
![image](https://github.com/JoinColony/colonyJS/assets/2174084/0961174c-fee0-417f-a0d8-8fc286e4fa2d)
4) Pick your branch you would like to release a snapshot from
4) Pick your branch that you would like to release a snapshot from
![image](https://github.com/JoinColony/colonyJS/assets/2174084/365ab525-3b36-472e-9f73-56557fc8812d)
5) The snapshot release will be available in npm under `0.0.0-next-TIMESTAMP` or `@next`
5) The snapshot release will be available in npm under `0.0.0-next-TIMESTAMP` or `@snapshot`

## Contributing

Expand Down

0 comments on commit e653ef5

Please sign in to comment.