Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/SchwarzIT/onyx into set-up-…
Browse files Browse the repository at this point in the history
…headless-package
  • Loading branch information
JoCa96 committed Dec 20, 2023
2 parents 298195a + a26b3b6 commit 02b2ddd
Show file tree
Hide file tree
Showing 4 changed files with 1,226 additions and 1,217 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/prerelease.yml → .github/workflows/release.yml
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
Expand All @@ -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
1 change: 1 addition & 0 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "docs",
"version": "0.0.0",
"type": "module",
"private": true,
"scripts": {
"dev": "vitepress dev src",
"build": "vitepress build src",
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"format:check": "prettier --check .",
"lint": "eslint . --ext .vue,.ts,.tsx --ignore-path .gitignore",
"lint:fix": "pnpm run lint --fix",
"publint": "pnpm -r --parallel --aggregate-output exec npx publint",
"publint": "pnpm -r --parallel --aggregate-output exec publint",
"prepare": "simple-git-hooks",
"preinstall": "npx only-allow pnpm"
},
Expand All @@ -30,6 +30,7 @@
"lint-staged": "^15.2.0",
"npm-run-all2": "^6.1.1",
"prettier": "^3.1.1",
"publint": "^0.2.6",
"sass": "^1.69.5",
"simple-git-hooks": "^2.9.0",
"typescript": "~5.3.3",
Expand Down
Loading

0 comments on commit 02b2ddd

Please sign in to comment.