diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index cca7cca..bedd4b8 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -3,21 +3,23 @@ name: publish npm Package on: release: types: [published] - + workflow_dispatch: jobs: publish-npm: runs-on: ubuntu-latest + permissions: + id-token: write + contents: read steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: '24' registry-url: https://registry.npmjs.org/ - run: npm install - run: npm run prepack - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} + diff --git a/CHANGELOG.md b/CHANGELOG.md index d6d6c18..848f209 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,7 @@ # Changelog +## [1.2.10](///compare/v1.2.9-1...v1.2.10) (2026-01-30) + ## [1.2.9](///compare/v1.1.8...v1.2.9) (2025-11-20) ### Features diff --git a/lefthook.yml b/lefthook.yml index 065a491..d4c6059 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -2,11 +2,11 @@ pre-commit: parallel: true commands: lint: - files: git diff --name-only @{push} + files: git diff --name-only --staged glob: "*.{js,ts,jsx,tsx}" run: npx eslint {files} types: - files: git diff --name-only @{push} + files: git diff --name-only --staged glob: "*.{js,ts, jsx, tsx}" run: npx tsc --noEmit commit-msg: diff --git a/package.json b/package.json index f242413..d7ef4c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-image-marker", - "version": "1.2.9", + "version": "1.2.10", "description": "Add text or icon watermark to your images", "main": "lib/commonjs/index", "module": "lib/module/index", @@ -66,12 +66,11 @@ "@evilmartians/lefthook": "^1.2.2", "@expo/config-plugins": "^7.8.4", "@react-native-community/eslint-config": "^3.0.2", - "@release-it/conventional-changelog": "^10.0.2", + "@release-it/conventional-changelog": "^9.0.4", "@types/jest": "^28.1.2", "@types/react": "~17.0.21", "@types/react-native": "0.70.0", "commitlint": "^17.0.2", - "conventional-changelog-conventionalcommits": "^9.1.0", "del-cli": "^5.0.0", "eslint": "^8.4.1", "eslint-config-prettier": "^8.5.0", @@ -84,7 +83,7 @@ "react": "18.2.0", "react-native": "0.73.3", "react-native-builder-bob": "^0.40.15", - "release-it": "^19.0.6", + "release-it": "^17.10.0", "typedoc": "^0.28.14", "typedoc-plugin-localization": "^3.1.0", "typedoc-plugin-rename-defaults": "^0.7.3",