expo-app-blocker 0.1.75 → 0.1.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,8 @@ jobs:
8
8
  publish:
9
9
  runs-on: ubuntu-latest
10
10
  if: "!startsWith(github.event.head_commit.message, 'v')"
11
+ permissions:
12
+ contents: write
11
13
 
12
14
  steps:
13
15
  - uses: actions/checkout@v6
@@ -43,12 +45,17 @@ jobs:
43
45
  npm version $NPM_VERSION --no-git-tag-version --allow-same-version
44
46
  # Then bump
45
47
  npm version ${{ steps.version.outputs.bump }} --no-git-tag-version
46
- echo "New version: $(node -p 'require("./package.json").version')"
48
+ NEW_VERSION=$(node -p 'require("./package.json").version')
49
+ echo "New version: $NEW_VERSION"
50
+ echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
51
+ id: bump
47
52
 
48
53
  - name: Publish to npm
49
54
  run: npm publish --access public
50
55
  env:
51
56
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
52
57
 
53
- - name: Output version
54
- run: echo "Published $(node -p 'require("./package.json").version')"
58
+ - name: Create GitHub Release
59
+ env:
60
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61
+ run: gh release create "v${{ steps.bump.outputs.new_version }}" --target "$GITHUB_SHA" --generate-notes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-app-blocker",
3
- "version": "0.1.75",
3
+ "version": "0.1.76",
4
4
  "description": "Expo module for cross-platform app blocking. Android: UsageStatsManager + Overlay. iOS: Screen Time API (FamilyControls + ManagedSettings + DeviceActivity).",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",