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

Feature/expose types #43

Merged
merged 26 commits into from
Feb 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
a8b24fb
feat(type export): add type export WIP
MatsJohansen87 Jan 30, 2024
261098d
build: set proper package name
torbrenner Jan 30, 2024
c2dc23a
build: added script for creating new versions
torbrenner Jan 30, 2024
aeede4b
build: release version 0.0.1-0
torbrenner Jan 30, 2024
4499a36
build: release version 0.0.2-0
torbrenner Jan 30, 2024
5023263
feat(npm package): library works as npm works as module
MatsJohansen87 Jan 31, 2024
bf7fc92
Merge branch 'feature/expose-types' of https://github.com/MatsJohanse…
MatsJohansen87 Jan 31, 2024
aeda16f
chore(npm version): update local install version
MatsJohansen87 Jan 31, 2024
d2e9eaf
0.0.3-0
torbrenner Jan 31, 2024
94c5d12
Merge branch 'develop' into feature/expose-types
MatsJohansen87 Feb 5, 2024
a5add35
fix(docker build): remove lens library dependency for npm install
MatsJohansen87 Feb 5, 2024
d3c5977
fix(docker build): temporarily remove type imports from projects to l…
MatsJohansen87 Feb 5, 2024
cdc1702
feat(type export): remove imports in aggregated file
MatsJohansen87 Feb 5, 2024
38f88df
fix(lens library import): replce module import to dist files
MatsJohansen87 Feb 5, 2024
472d3d5
fix(dependencies): remove circular dependency
MatsJohansen87 Feb 5, 2024
a33bf82
fix(WIP: build): stop removing @samply subfolder
MatsJohansen87 Feb 5, 2024
b106357
fix(WIP: build): stop removing @samply subfolder
MatsJohansen87 Feb 5, 2024
d194870
fix(WIP: build): fix dist import
MatsJohansen87 Feb 5, 2024
bdfca8b
fix(WIP: build): fix dist import
MatsJohansen87 Feb 5, 2024
774dbec
fix(WIP: build): fix dist import
MatsJohansen87 Feb 5, 2024
d16a758
fix(WIP: build): fix dist import
MatsJohansen87 Feb 5, 2024
bc16f4f
fix(WIP: build): fix dist import
MatsJohansen87 Feb 5, 2024
ba56e8e
fix(WIP: build): fix dist import
MatsJohansen87 Feb 5, 2024
cdd2ce1
fix: remove samply lens from package-lock
torbrenner Feb 6, 2024
7f1fdc2
fix: try only one build platform
torbrenner Feb 6, 2024
19c702c
build: added ci for publishing package
torbrenner Feb 6, 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
1 change: 1 addition & 0 deletions .github/workflows/docker-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
image-name: "samply/lens"
build-args: |
TARGET_ENVIRONMENT=staging
build-platforms: "linux/amd64"
# This passes the secrets from calling workflow to the called workflow
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
# Build then a new version is tagged
tags:
- '*.*.*'
- 'v*.*.*'
pull_request:
branches:
- main
Expand All @@ -29,6 +29,7 @@ jobs:
image-name: "samply/lens"
build-args: |
TARGET_ENVIRONMENT=production
build-platforms: "linux/amd64"
# This passes the secrets from calling workflow to the called workflow
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "Samply.Lens Github Workflow"
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- run: npm ci
- name: "Build @samply/lens"
run: npm run build
- name: "Publish @samply/lens"
run: cd dist/ && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

33 changes: 33 additions & 0 deletions .github/workflows/verify-new-code.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Samply.Lens verify new Code"
on:
pull_request:
branches:
- main
- develop
push:
branches:
- develop

jobs:
verify-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- run: npm ci
# for now disable code format check, will be activated later
# name: "Check Code Format"
# run: npm run format:check
- name: "Check Security"
run: npm run security:check
# - name: "Verify Commit Messages"
# run: npm run lint:commits
# - name: "Svelte Check"
# run: npm run check
# for now disable linting, will be activated later
# run: npm run lint
22 changes: 22 additions & 0 deletions .github/workflows/verify-new-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Samply.Lens verify new Release"
on:
pull_request:
branches:
- main

jobs:
verify-new-release:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git checkout --track origin/main
- run: git checkout --track origin/develop
- name: "Ensure Package Version changed"
run: |
if [ "$(git diff main develop -- package.json | grep version | wc -l)" -eq 0 ]; then \
echo "::error:: Please run `npm run version` before merging to main!"; \
exit 1; \
fi
Loading
Loading