Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
"changelog": [
"@fingerprintjs/changesets-changelog-format",
{
"repo": "fingerprintjs/react"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [
"fingerprintjs-react-spa-example",
"next",
"next-appDir",
"preact",
"vite",
"webpack-based"
]
}
14 changes: 14 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"mode": "pre",
"tag": "test",
"initialVersions": {
"@fingerprint/react": "3.0.0",
"fingerprintjs-react-spa-example": "0.1.0",
"next": "0.1.0",
"next-appDir": "0.1.0",
"preact": "0.0.0",
"vite": "0.0.0",
"webpack-based": "1.0.0"
},
"changesets": []
}
5 changes: 5 additions & 0 deletions .changeset/ready-trams-notice.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@fingerprint/react': patch
---

Sample changeset to test release pipeline
10 changes: 9 additions & 1 deletion .github/workflows/analyze-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,13 @@ permissions:
contents: write
jobs:
analyze-commits:
name: Generate docs and coverage report
name: Analyze commits
uses: fingerprintjs/dx-team-toolkit/.github/workflows/analyze-commits.yml@v1
with:
previewNotes: false

preview-changeset:
name: Preview changeset
uses: fingerprintjs/dx-team-toolkit/.github/workflows/preview-changeset-release.yml@v1
with:
pr-title: ${{ github.event.pull_request.title }}
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,28 @@
name: release
name: Release

on:
push:
branches:
- main

permissions:
id-token: write # Required for Trusted Publishing: https://docs.npmjs.com/trusted-publishers
id-token: write
contents: read

jobs:
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
uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-sdk-changesets.yml@v1
with:
appId: ${{ vars.APP_ID }}
runnerAppId: ${{ vars.RUNNER_APP_ID }}
version-command: pnpm changeset:version
publish-command: pnpm changeset:publish
language: node
language-version: 24
prepare-command: pnpm build
useTrustedPublishing: true
secrets:
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}
RUNNER_APP_PRIVATE_KEY: ${{ secrets.RUNNER_APP_PRIVATE_KEY }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
12 changes: 0 additions & 12 deletions .github/workflows/reset-prerelease-branch.yml

This file was deleted.

47 changes: 0 additions & 47 deletions .releaserc

This file was deleted.

1 change: 1 addition & 0 deletions examples/webpack-based/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "webpack-based",
"version": "1.0.0",
"private": true,
"main": "dist/main.js",
"license": "MIT",
"scripts": {
Expand Down
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@
"test:coverage": "vitest run --coverage",
"test:coverage:diff": "vitest run --coverage --reporter json --outputFile.json=report.json",
"test:dts": "tsc --noEmit --isolatedModules dist/fingerprint-react.d.ts",
"docs": "typedoc src/index.ts --out docs"
"docs": "typedoc src/index.ts --out docs",
"changeset:version": "changeset version",
"changeset:publish": "HUSKY=0 changeset publish"
},
"files": [
"dist",
Expand All @@ -61,9 +63,10 @@
"fast-deep-equal": "3.1.3"
},
"devDependencies": {
"@changesets/cli": "^2.30.0",
"@commitlint/cli": "^19.2.0",
"@fingerprintjs/changesets-changelog-format": "^0.2.0",
"@fingerprintjs/commit-lint-dx-team": "^0.0.2",
"@fingerprintjs/conventional-changelog-dx-team": "^0.1.0",
"@fingerprintjs/eslint-config-dx-team": "^0.1.0",
"@fingerprintjs/prettier-config-dx-team": "^0.2.0",
"@fingerprintjs/tsconfig-dx-team": "^0.0.2",
Expand All @@ -74,8 +77,6 @@
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@vitest/coverage-istanbul": "^4.0.18",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "8.57.0",
"eslint-config-next": "14.1.3",
"eslint-config-preact": "^1.3.0",
Expand All @@ -101,10 +102,5 @@
"lint-staged": {
"*.ts": "pnpm lint:fix",
"*.tsx": "pnpm lint:fix"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
Loading
Loading