-
Notifications
You must be signed in to change notification settings - Fork 0
Improve pipelines and use GitHub releases #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f341951
ci: use new publish script
tnotheis bad0a1c
ci: change pipeline trigger to push tag
tnotheis 4e120d6
ci: add --no-git-tag-version flag to npm version command in publish s…
tnotheis 71cea14
chore: remove versions from package.json
tnotheis 079808c
ci: add mergify configuration
tnotheis deb122e
chore: add pull request template
tnotheis a2d1d98
chore: add release changelog configuration
tnotheis ed04a8f
ci: add renovate config
tnotheis 87c29a8
chore: add github settings.yml
tnotheis 8276ba6
chore: add enhanced-publish to dev dependencies
tnotheis ccfbd82
ci: update checkout action to v6
tnotheis f566d65
ci: add and use runChecks script
tnotheis a4da447
ci: inline build and test scripts
tnotheis 5154ce3
ci: add check-pr pipeline
tnotheis a73246c
ci: limit permissions of check-pr pipeline
tnotheis 8eb28de
chore: fix formatting
tnotheis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,24 @@ | ||
| #!/usr/bin/env bash | ||
| set -e | ||
|
|
||
| if [ -z "$VERSION" ]; then | ||
| echo "The environment variable 'VERSION' must be set." | ||
| exit 1 | ||
| fi | ||
|
|
||
| if printf -- "$VERSION" | grep -q " "; then | ||
| echo '$VERSION must not contain whitespaces' | ||
| exit 1 | ||
| fi | ||
|
|
||
| # set the version of all packages in the workspace to $VERSION | ||
| npm version --workspaces --no-git-tag-version "$VERSION" | ||
|
|
||
| # replace all dependencies from the current workspace that are marked with "*" with the version that gets published | ||
| find . -regex "./packages/[A-Za-z-]*/package\.json$" -exec sed -i -e "s/\"\*\"/\"$VERSION\"/g" {} \; | ||
tnotheis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # npm i to update the lockfile | ||
| npm i | ||
|
|
||
| # publish all packages | ||
| npm exec --workspaces -c 'enhanced-publish --if-possible --use-preid-as-tag' | ||
This file contains hidden or 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,9 @@ | ||
| set -e | ||
|
|
||
| npm ci | ||
| npm run build | ||
| npm run lint:eslint | ||
| npm run lint:prettier | ||
| npm run --workspaces cdep | ||
| npx --workspaces license-check | ||
tnotheis marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| npx better-npm-audit audit | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,8 @@ | ||
| # Readiness checklist | ||
|
|
||
| - [ ] I added/updated tests (if necessary). | ||
| - [ ] I ensured that the PR title is good enough for the changelog. | ||
| - [ ] I labeled the PR. | ||
| - [ ] I self-reviewed the PR. | ||
|
|
||
| <!-- # Description --> |
This file contains hidden or 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,6 @@ | ||
| pull_request_rules: | ||
| - name: update pull request | ||
| conditions: | ||
| - label!=wip | ||
| actions: | ||
| update: |
This file contains hidden or 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,21 @@ | ||
| changelog: | ||
| exclude: | ||
| labels: | ||
| - ci | ||
| - chore | ||
| - dependencies | ||
| - refactoring | ||
| - test | ||
| categories: | ||
| - title: Breaking Changes | ||
| labels: | ||
| - breaking-change | ||
| - title: New Features | ||
| labels: | ||
| - enhancement | ||
| - title: Bug Fixes | ||
| labels: | ||
| - bug | ||
| - title: Other Changes | ||
| labels: | ||
| - "*" |
This file contains hidden or 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,27 @@ | ||
| { | ||
| $schema: "https://docs.renovatebot.com/renovate-schema.json", | ||
| rangeStrategy: "bump", | ||
| extends: ["config:recommended", ":disableDependencyDashboard"], | ||
| labels: ["dependencies"], | ||
| schedule: ["after 10pm every weekday", "before 5am every weekday", "every weekend"], | ||
| reviewers: ["Milena-Czierlinski", "britsta"], | ||
| packageRules: [ | ||
| { | ||
| // all patch versions of all packages should be part of a single group | ||
| groupName: "patch-all", | ||
| matchUpdateTypes: ["patch", "digest"], | ||
| automerge: true | ||
| }, | ||
| // ############# Minor updates (one group per datasource) ############# | ||
| { | ||
| groupName: "minor-updates-npm", | ||
| matchDatasources: ["npm"], | ||
| matchUpdateTypes: ["minor"] | ||
| }, | ||
| { | ||
| groupName: "minor-updates-github-tags-and-runners", | ||
| matchDatasources: ["github-tags", "github-runners"], | ||
| matchUpdateTypes: ["minor"] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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,42 @@ | ||
| --- | ||
| # https://github.com/repository-settings/app | ||
|
|
||
| repository: | ||
| allow_squash_merge: true | ||
| allow_merge_commit: false | ||
| allow_rebase_merge: false | ||
| allow_auto_merge: true | ||
| allow_update_branch: true | ||
| delete_branch_on_merge: true | ||
|
|
||
| labels: | ||
| - name: breaking-change | ||
| color: "#16060F" | ||
| description: A breaking change | ||
| - name: bug | ||
| color: "#d73a4a" | ||
| description: Something isn't working | ||
| - name: chore | ||
| color: "#c2e0c6" | ||
| description: Some routine work like updating dependencies | ||
| - name: ci | ||
| color: "#DFB5FD" | ||
| description: Continuous Integration related stuff | ||
| - name: dependencies | ||
| color: "#0366d6" | ||
| description: Pull requests that update dependencies | ||
| - name: documentation | ||
| color: "#0075ca" | ||
| description: Improvements or additions to documentation | ||
| - name: enhancement | ||
| color: "#a2eeef" | ||
| description: New feature or request | ||
| - name: refactoring | ||
| color: "#880361" | ||
| description: Refactoring of code | ||
| - name: test | ||
| color: "#20D89D" | ||
| description: This pull request contains only new or changed tests | ||
| - name: wip | ||
| color: "#32BF4C" | ||
| description: Work in Progress (blocks mergify from auto update the branch) |
This file contains hidden or 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,20 @@ | ||
| name: Check Pull Request | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, labeled, unlabeled, synchronize] | ||
|
|
||
| jobs: | ||
| validate-pr-label: | ||
| name: Validate the Pull Request's labels | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: PR must be labeled | ||
| uses: jesusvasquez333/verify-pr-label-action@v1.4.0 | ||
| with: | ||
| disable-reviews: true | ||
| github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
| valid-labels: "breaking-change, bug, chore, ci, dependencies, documentation, enhancement, refactoring, test" |
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.