-
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 branch 'main' of https://github.com/SchwarzIT/onyx into set-up-…
…headless-package
- Loading branch information
Showing
4 changed files
with
1,226 additions
and
1,217 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,12 +1,13 @@ | ||
name: Prerelease | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
prerelease: | ||
name: Prerelease | ||
name: Release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
@@ -31,12 +32,26 @@ jobs: | |
- name: 👷 Build packages | ||
run: pnpm build-all | ||
|
||
- name: ⛴️ Version and Publish | ||
- name: 🤖 Configure Git Bot | ||
run: | | ||
git config user.name "Release Bot[bot]" | ||
git config user.email "[email protected]" | ||
- name: ⛴️ Version and Publish | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
run: | | ||
npx changeset version | ||
npx changeset publish | ||
git add . | ||
git add --all | ||
git commit --amend --no-edit | ||
git push --follow-tags | ||
- name: 📸 Snapshot and Publish | ||
if: ${{ github.ref != 'refs/heads/main' }} | ||
run: | | ||
# [Snapshot release fails if repository is in pre-release mode](https://github.com/changesets/changesets/issues/1195) | ||
rm -f .changeset/pre.json | ||
# Add empty changeset so we always have a new snapshot release for each new run | ||
npx changeset add --empty | ||
npx changeset version --snapshot | ||
npx changeset publish --tag snapshot |
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.