-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from samply/feature/expose-types
Feature/expose types
- Loading branch information
Showing
18 changed files
with
1,003 additions
and
118 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 |
---|---|---|
@@ -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}} | ||
|
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,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 |
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,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 |
Oops, something went wrong.