-
Notifications
You must be signed in to change notification settings - Fork 0
Improve pipelines and use GitHub releases #35
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
Open
tnotheis
wants to merge
25
commits into
main
Choose a base branch
from
improve-pipelines
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
08a4995
chore: add .nvmrc
tnotheis a19160d
ci: improve test pipeline
tnotheis 2f90b7a
ci: improve publish pipeline
tnotheis c1e9d15
ci: add renovate config
tnotheis 39f6f4e
chore: update .vscode/settings.json to match other repos
tnotheis 28049ee
chore: add settings.yml
tnotheis 02b4f64
ci: add check-pr pipeline
tnotheis 4765582
ci: use single codeql file
tnotheis ec05874
Merge branch 'main' into improve-pipelines
tnotheis b0caa77
ci: remove docker config extension from renovate config
tnotheis a59cf4b
ci: delete test.sh script
tnotheis d817356
ci: update actions/checkout to version 6 in test workflow
tnotheis 660a303
cI: run build instead of build:node in test pipeline
tnotheis 069aff0
chore: add enhanced-publish to dev dependencies
tnotheis 5f3c1e0
ci: update writeBuildInformation.sh to read version from env var
tnotheis d546f0a
ci: update publishNpm.sh to prevent git tagging during versioning
tnotheis 00e7f70
chore: add pull request template
tnotheis 8ad20c9
ci: add mergify configuration
tnotheis 69958fd
feat: add release template
tnotheis 97bbd3a
chore: fix casing of buildInformation in index.ts
tnotheis c4d2d4e
chore: remove version from package.json
tnotheis 5e46a07
ci: limit permissions of check-pr pipeline
tnotheis d9002d2
chore: correctly rename buildInformation.ts file
tnotheis df5e6f7
ci: build tests in test pipeline
tnotheis f75a02f
ci: fix test pipeline
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 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 @@ | ||
| #!/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 --no-git-tag-version $VERSION | ||
|
|
||
| # npm i to update the lockfile | ||
| npm i | ||
|
|
||
| # publish all packages | ||
| npm exec -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 |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| set -e | ||
| set -x | ||
|
|
||
| npm ci | ||
| npm run lint:prettier | ||
| npm run build:node | ||
| npm run lint:eslint | ||
| npm run lint:prettier | ||
| npm run cdep | ||
| npx license-check | ||
| npx better-npm-audit audit --exclude 1112706,1113686 | ||
| npm run build:ci |
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
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. | ||
| - [ ] 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 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,39 @@ | ||
| name: "CodeQL" | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main", "release/**"] | ||
| pull_request: | ||
| branches: ["main", "release/**"] | ||
| schedule: | ||
| - cron: "38 11 * * 5" | ||
|
|
||
| jobs: | ||
| analyze: | ||
| name: Analyze | ||
| runs-on: "ubuntu-latest" | ||
| timeout-minutes: 360 | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| language: ["javascript-typescript"] | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
|
|
||
| # Initializes the CodeQL tools for scanning. | ||
| - name: Initialize CodeQL | ||
| uses: github/codeql-action/init@v4 | ||
| with: | ||
| languages: ${{ matrix.language }} | ||
|
|
||
| - name: Perform CodeQL Analysis | ||
| uses: github/codeql-action/analyze@v4 | ||
| with: | ||
| category: "/language:${{matrix.language}}" |
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
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 @@ | ||
| 25.8.1 |
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.