-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release using GitHub releases (#170)
* ci: add special dependabot config for the runtime * feat: make sure the PR is labeled * chore: add gh configs * chore: remove versions from package jsons * ci: set versions during build * chore: add nvmrc * chore: discontinue CHANGELOG.md * chore: remove the version check * ci: check for versions * fix: update packages / make build working again * chore: propagate change to lockfile * chore: remove workaround
- Loading branch information
1 parent
d3d0408
commit 074abcf
Showing
17 changed files
with
140 additions
and
103 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
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,5 +1,11 @@ | ||
set -e | ||
set -x | ||
|
||
if [ -z "$VERSION" ]; then | ||
echo "The environment variable 'VERSION' must be set." | ||
exit 1 | ||
fi | ||
|
||
cd packages/sdk | ||
npm version $VERSION | ||
npx enhanced-publish --if-possible --use-preid-as-tag |
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,9 +1,9 @@ | ||
COMMIT_HASH=c | ||
BUILD_NUMBER=b | ||
PACKAGE_VERSION=p | ||
VERSION=v | ||
|
||
docker build --no-cache --progress=plain \ | ||
--tag ghcr.io/nmshd/connector:prod \ | ||
--build-arg COMMIT_HASH=$COMMIT_HASH \ | ||
--build-arg BUILD_NUMBER=$BUILD_NUMBER \ | ||
--build-arg PACKAGE_VERSION=$PACKAGE_VERSION . | ||
--build-arg VERSION=$VERSION . |
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,5 @@ | ||
# Readiness checklist | ||
|
||
- [ ] I added/updated tests. | ||
- [ ] I ensured that the PR title is good enough for the changelog. | ||
- [ ] I labeled the PR. |
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,21 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ci | ||
- chore | ||
- dependencies | ||
- refactor | ||
- 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 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,17 @@ | ||
name: Check Pull Request | ||
|
||
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/[email protected] | ||
with: | ||
disable-reviews: true | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
valid-labels: "breaking-change, bug, chore, ci, dependencies, documentation, enhancement, refactoring, test" |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node |
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.