generated from fingerprintjs/library-template-typescript
-
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 #38 from fingerprintjs/refactor/inter-551
refactor: change from yarn to pnpm
- Loading branch information
Showing
27 changed files
with
6,278 additions
and
17,359 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,11 @@ | ||
name: Analyze Commit Messages | ||
on: [pull_request] | ||
on: | ||
pull_request: | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
jobs: | ||
release-notes-comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Collect semantic-release-info | ||
id: semantic_release_info | ||
uses: fingerprintjs/action-semantic-release-info@v1 | ||
- if: ${{ steps.semantic_release_info.outputs.no_release == 'false' }} | ||
name: Add comment to the PR | ||
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd | ||
with: | ||
header: ReleasePreview | ||
recreate: true | ||
message: | | ||
## This PR will create a ${{steps.semantic_release_info.outputs.type}} release :rocket: | ||
${{steps.semantic_release_info.outputs.notes}} | ||
- if: ${{ steps.semantic_release_info.outputs.no_release == 'true' }} | ||
name: Add comment to the PR | ||
uses: marocchino/sticky-pull-request-comment@3d60a5b2dae89d44e0c6ddc69dd7536aec2071cd | ||
with: | ||
header: ReleasePreview | ||
recreate: true | ||
message: | | ||
## This PR will not create a new release :rocket: | ||
analyze-commits: | ||
name: Generate docs and coverage report | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1 |
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,32 +1,10 @@ | ||
# Reference on this file: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions | ||
name: Lint, build and test | ||
name: build | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
name: Lint, build and test | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 3 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
!**/dist/node_modules | ||
key: nodemodules-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: nodemodules- | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.node-version' | ||
- name: Install Node packages | ||
run: yarn install | ||
- name: Lint | ||
run: yarn lint | ||
- name: Build | ||
run: yarn build | ||
- name: Tests | ||
run: yarn test | ||
build-and-check: | ||
name: Build project and run CI checks | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/build-typescript-project.yml@v1 |
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
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,15 @@ | ||
name: Coverage report | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
coverage-report: | ||
name: Coverage report | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/docs-and-coverage.yml@v1 | ||
with: | ||
skip-docs-step: true | ||
prepare-gh-pages-commands: | | ||
mv coverage/lcov-report/* ./gh-pages |
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 |
---|---|---|
@@ -1,31 +1,16 @@ | ||
name: Release | ||
|
||
on: | ||
# We prefer manual release only | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
- test | ||
|
||
jobs: | ||
release: | ||
environment: production | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build library | ||
run: yarn build | ||
|
||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@91ab76a4a393a8d0c4739e9aea1818b56bc953ea | ||
with: | ||
extra_plugins: | | ||
@semantic-release/exec@6.0.3 | ||
conventional-changelog-conventionalcommits@5.0.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} | ||
HUSKY: 0 | ||
build-and-release: | ||
name: 'Build project, run CI checks and publish new release' | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@v1 | ||
with: | ||
appId: ${{ vars.APP_ID }} | ||
secrets: | ||
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} |
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,12 @@ | ||
name: Reset Prerelease Branch | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
reset-feature-branch: | ||
uses: fingerprintjs/dx-team-toolkit/.github/workflows/reset-prerelease-branch.yml@v1 | ||
with: | ||
branch_name: 'test' | ||
appId: ${{ vars.APP_ID }} | ||
secrets: | ||
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} |
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,12 +1 @@ | ||
{ | ||
"printWidth": 120, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": false, | ||
"singleQuote": true, | ||
"jsxSingleQuote": true, | ||
"trailingComma": "es5", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"arrowParens": "always" | ||
} | ||
"@fingerprintjs/prettier-config-dx-team" |
Oops, something went wrong.