Skip to content
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

feat: 3.0.0 #178

Merged
merged 49 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
43ab5ce
ci: minor fix
Bugs5382 Jun 29, 2024
80c8d21
ci: minor fix
Bugs5382 Jun 29, 2024
75f488e
docs: refactoring Message class
Bugs5382 Jun 29, 2024
2d24544
docs: refactoring Message class (#117)
Bugs5382 Jun 29, 2024
45cb78c
docs: msh doc changes
Bugs5382 Jun 30, 2024
283cb77
chore(deps-dev): bump typescript from 5.5.2 to 5.5.3
dependabot[bot] Jul 2, 2024
24c27f2
chore(deps-dev): bump typescript from 5.5.2 to 5.5.3 (#119)
Bugs5382 Jul 6, 2024
727955a
chore(deps-dev): bump typescript from 5.5.3 to 5.5.4
dependabot[bot] Jul 23, 2024
a0ef9ee
chore(deps-dev): bump typescript from 5.5.3 to 5.5.4 (#120)
Bugs5382 Jul 28, 2024
e6ee6a3
feat: client connection
Bugs5382 Oct 31, 2024
aeb4108
feat: client connection (#175)
Bugs5382 Oct 31, 2024
e66b85a
chore(release): 3.0.0-beta.1 [ci skip]
semantic-release-bot Oct 31, 2024
6aef367
feat: codec MLLP
Bugs5382 Nov 1, 2024
33b02d1
docs: codec MLLP
Bugs5382 Nov 2, 2024
563764f
chore: readonly
Bugs5382 Nov 2, 2024
c29874e
ci: fix workflow
Bugs5382 Nov 2, 2024
7cf35be
chore: unit testing
Bugs5382 Nov 2, 2024
f84c8a4
feat: codec MLLP (#176)
Bugs5382 Nov 2, 2024
a2bea67
chore: cleanup
Bugs5382 Nov 2, 2024
a3cdaf6
ci: fix
Bugs5382 Nov 2, 2024
3b5080a
ci: fix
Bugs5382 Nov 2, 2024
4097396
feat: drop semantic-release
Bugs5382 Nov 2, 2024
7e7d0d7
feat: drop semantic-release
Bugs5382 Nov 2, 2024
26f111f
chore: add github token
Bugs5382 Nov 2, 2024
dd33863
ci: updates
Bugs5382 Nov 2, 2024
7e8b72c
ci: updates
Bugs5382 Nov 2, 2024
6c696c8
ci: updates
Bugs5382 Nov 2, 2024
4078995
ci: updates
Bugs5382 Nov 2, 2024
194a4a1
ci: updates
Bugs5382 Nov 2, 2024
203ae02
ci: updates
Bugs5382 Nov 2, 2024
9be22cf
ci: updates
Bugs5382 Nov 2, 2024
809ace4
ci: updates
Bugs5382 Nov 2, 2024
e388341
ci: updates
Bugs5382 Nov 2, 2024
4756458
ci: updates
Bugs5382 Nov 2, 2024
3f24558
ci: updates
Bugs5382 Nov 3, 2024
eba3b5a
feat: drop semantic-release (#177)
Bugs5382 Nov 3, 2024
2884b11
ci: little fix
Bugs5382 Nov 3, 2024
2f4db48
ci: little fix
Bugs5382 Nov 8, 2024
2087acf
ci: fixes
Bugs5382 Nov 8, 2024
b780cf6
ci: fixes
Bugs5382 Nov 8, 2024
c305064
Merge branch 'main' into develop
Bugs5382 Nov 8, 2024
9a724ee
ci: fixes
Bugs5382 Nov 8, 2024
ed2c839
feat: update packages
Bugs5382 Nov 8, 2024
434140d
ci: major overhaul
Bugs5382 Nov 8, 2024
d782f30
ci: major overhaul
Bugs5382 Nov 8, 2024
f2ea508
ci: major overhaul
Bugs5382 Nov 8, 2024
4da36c2
chore: major overhall of formating
Bugs5382 Nov 16, 2024
f8db41a
feat: update packages (#179)
Bugs5382 Nov 16, 2024
5ba6a13
Merge branch 'main' into develop
Bugs5382 Nov 16, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .github/dependabot.yml

This file was deleted.

15 changes: 0 additions & 15 deletions .github/pr-title-checker-config.json

This file was deleted.

2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ version-resolver:
- patch
default: patch
exclude-labels:
- skip-changelog
- skip-changelog
109 changes: 109 additions & 0 deletions .github/workflows/action-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Release and Publish
on:
release:
types:
- published
- released

permissions:
contents: write
actions: write
checks: write
id-token: write

jobs:
Test:
uses: ./.github/workflows/action-test.yaml

Strip_Version:
runs-on: ubuntu-latest
outputs:
CLEAN_TAG: ${{ steps.set-output.outputs.CLEAN_TAG }}
steps:
- name: Strip "v" from Tag
id: set-output
run: echo "CLEAN_TAG=${GITHUB_EVENT_RELEASE_TAG_NAME#v}" >> $GITHUB_OUTPUT
env:
GITHUB_EVENT_RELEASE_TAG_NAME: ${{ github.event.release.tag_name }}

Publish:
runs-on: ubuntu-latest
outputs:
GIT_BRANCH_TARGET: ${{ steps.set-npm-tag.outputs.GIT_BRANCH_TARGET }}
needs: ['Test', 'Strip_Version']
env:
CLEAN_TAG: ${{ needs.Strip_Version.outputs.CLEAN_TAG }}
steps:
- name: Create Directory
run: mkdir -p ./lib

- name: Download the build artifact
uses: actions/download-artifact@v4
with:
name: cache
path: ./

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org/'

- name: Update Version in Package.json
id: set-npm-tag
run: |
npm version $CLEAN_TAG --no-git-tag-version
if [[ "$CLEAN_TAG" == *"beta"* ]]; then
echo "NPM_TAG=beta" >> $GITHUB_OUTPUT
echo "GIT_BRANCH_TARGET=develop" >> $GITHUB_OUTPUT
else
echo "NPM_TAG=latest" >> $GITHUB_OUTPUT
echo "GIT_BRANCH_TARGET=main" >> $GITHUB_OUTPUT
fi

- name: Publish to npm
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ steps.set-npm-tag.outputs.NPM_TAG }}

Update_Repo:
runs-on: ubuntu-latest
needs: ['Test', 'Strip_Version', 'Publish']
permissions:
contents: write
actions: write
checks: write
env:
CLEAN_TAG: ${{ needs.Strip_Version.outputs.CLEAN_TAG }}
GIT_BRANCH_TARGET: ${{ needs.Publish.outputs.GIT_BRANCH_TARGET }}
steps:
# - uses: hmarr/debug-action@v3

- uses: actions/checkout@v4
with:
token: '${{ secrets.GITHUB_TOKEN }}'
ref: ${{ env.GIT_BRANCH_TARGET }}
sparse-checkout: |
package.json
CHANGELOG.md
sparse-checkout-cone-mode: false

- name: Update Version in Package.json
id: set-git-branch
run: npm version $CLEAN_TAG --no-git-tag-version

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit and Push Version Update
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "chore(release): ${{ github.event.release.tag_name }} [skip ci]"

Document:
needs: ['Update_Repo', 'Publish']
uses: ./.github/workflows/action-docs.yaml
125 changes: 125 additions & 0 deletions .github/workflows/action-docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
name: Publish Docs
on:
workflow_dispatch:
workflow_call:

permissions:
contents: write
actions: write
checks: write

jobs:
History:
runs-on: ubuntu-latest
steps:
- name: Check if branch exists
id: branch_check
run: |
if git show-ref --verify --quiet refs/heads/gh-pages; then
echo "Branch exists"
echo "exists=true" >> $GITHUB_ENV
else
echo "Branch does not exist"
echo "exists=false" >> $GITHUB_ENV
fi
continue-on-error: true

- name: Get the gh-pages repo
if: env.exists == 'true'
uses: actions/checkout@v4
with:
ref: gh-pages

- name: TAR the existing docs
if: env.exists == 'true'
run: |
mkdir -p ./docs
tar -cvf documentation.tar ./docs

- name: Create a document artifact
if: env.exists == 'true'
uses: actions/upload-artifact@v4
with:
name: documentation
path: documentation.tar
Build:
needs: History
runs-on: ubuntu-latest
steps:
- name: Checkout src
uses: actions/checkout@v4

- name: Create Directory
run: mkdir -p ./docs

- name: Download the existing documents artifact
uses: actions/download-artifact@v4
with:
name: documentation
continue-on-error: true

- run: tar -xf documentation.tar ./docs -C ./docs
continue-on-error: true

- name: Build
uses: actions/setup-node@v4
with:
node-version: lts/*

- name: Install NPM
run: npm install --ignore-scripts

- name: Build Documents
run: npm run typedoc

- name: Tar the new docs
run: tar -cvf newdocumentation.tar ./docs

- name: Create a new document artifact
uses: actions/upload-artifact@v4
with:
name: newdocumentation
path: newdocumentation.tar
Commit:
needs: Build
runs-on: ubuntu-latest
steps:
- name: Check if branch exists
id: branch_check
run: |
if git show-ref --verify --quiet refs/heads/gh-pages; then
echo "Branch exists"
echo "exists=true" >> $GITHUB_ENV
else
echo "Branch does not exist"
echo "exists=false" >> $GITHUB_ENV
fi
continue-on-error: true

- name: Checkout the gh-pages repo
if: env.exists == 'true'
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Create Directory
run: mkdir -p ./docs

- name: Download the new documents artifact
uses: actions/download-artifact@v4
with:
name: newdocumentation
continue-on-error: true

- name: Extract Tar
run: tar -xf newdocumentation.tar ./docs -C ./docs

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
allow_empty_commit: true
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./docs
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
55 changes: 55 additions & 0 deletions .github/workflows/action-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Test
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- main
- develop
types:
- opened
- reopened
- ready_for_review
- synchronize


jobs:

Build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x, 'lts/*', 'latest']
steps:
- uses: actions/checkout@v4

- name: Test with Node ${{matrix.node-version}}
uses: actions/setup-node@v4
with:
node-version: ${{matrix.node-version}}

- name: Pre-Run
run: |
npm install --package-lock-only
npm install --ignore-scripts

- name: Run Tests and Lint
run: |
npm run lint
npm run test

- name: Run Build
run: |
npm run build

- name: Upload build artifact
if: matrix.node-version == 'lts/*'
uses: actions/upload-artifact@v4
with:
name: cache
path: |
package.json
package-lock.json
README.md
LICENSE
./lib
61 changes: 0 additions & 61 deletions .github/workflows/dependabot-action.yml

This file was deleted.

Loading
Loading