-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
41 changed files
with
1,757 additions
and
2,223 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
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Publish unstable | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
push: | ||
branches: main | ||
workflow_dispatch: | ||
jobs: | ||
publish-unstable: | ||
name: Publish unstable | ||
runs-on: ubuntu-latest | ||
if: ${{ !startsWith(github.event.head_commit.message, 'release:') && !github.event.pull_request.draft }} | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
ref: ${{ github.head_ref || github.ref }} | ||
- name: Use Node.js | ||
uses: ./.github/actions/setup-node | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Run publish script | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: | | ||
git config user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com" | ||
git config user.name "${GITHUB_ACTOR}" | ||
yarn publish unstable --tolerate-republish |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Releasing | ||
|
||
## From the CLI | ||
|
||
First, ensure you have: | ||
|
||
1. Publish access to the `slicemachine` organization and to the | ||
`slice-machine-ui` and `start-slicemachine` packages. | ||
2. Read access to the `SENTRY_AUTH_TOKEN` secret. | ||
|
||
Then, if you have access, the steps below explain how to publish packages: | ||
|
||
1. Run `git checkout <branch>` to switch to the branch you want to release. | ||
2. Run `git pull` to update the current branch. | ||
3. Run `yarn` to install the project dependencies. | ||
4. Run `yarn clean`, from the top-level directory, to clean the working tree. | ||
5. Run `yarn npm login` to log in to the npm registry. | ||
6. Run `export SENTRY_AUTH_TOKEN=<SENTRY_AUTH_TOKEN>` to add the `SENTRY_AUTH_TOKEN` | ||
variable to the environment of all subsequently executed commands. | ||
7. To publish: | ||
- A stable release, run `yarn publish stable --dry-run <name>:(major|minor|patch) ...`, from the top-level directory. | ||
- An unstable release, run `yarn publish unstable --dry-run`, from the top-level directory. | ||
8. This was a dry run. If everything looks good, you can re-run the same command | ||
without the `--dry-run` flag. | ||
|
||
Finally, if the release succeeded, you should: | ||
|
||
1. Write/Publish the [release notes](https://github.com/prismicio/slice-machine/releases) | ||
on GitHub. | ||
2. Move all [Linear issues](https://linear.app/prismic/team/DT/all) in _Release → Pending_ | ||
to _Release → Done_. | ||
|
||
> [!TIP] | ||
> You can use the following command as a starting point for publishing all packages at once: `yarn publish stable --dry-run @slicemachine/adapter-next:patch @slicemachine/adapter-nuxt:patch @slicemachine/adapter-nuxt2:patch @slicemachine/adapter-sveltekit:patch @slicemachine/init:patch @slicemachine/manager:patch @slicemachine/plugin-kit:patch slice-machine-ui:patch start-slicemachine:patch`. |
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,6 +1,5 @@ | ||
{ | ||
"name": "next-upgrade", | ||
"version": "1.22.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
|
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,6 +1,5 @@ | ||
{ | ||
"name": "cimsirp", | ||
"version": "1.22.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
|
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,6 +1,5 @@ | ||
{ | ||
"name": "sveltekit", | ||
"version": "1.22.1", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vite dev", | ||
|
This file was deleted.
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
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
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
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.