poke-gate 0.3.3 → 0.3.5

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.
@@ -5,6 +5,10 @@ on:
5
5
  tags:
6
6
  - 'v*'
7
7
 
8
+ permissions:
9
+ contents: read
10
+ id-token: write
11
+
8
12
  jobs:
9
13
  publish:
10
14
  runs-on: ubuntu-latest
@@ -18,7 +22,14 @@ jobs:
18
22
  node-version: 22
19
23
  registry-url: https://registry.npmjs.org
20
24
 
25
+ - name: Verify tag matches package version
26
+ run: |
27
+ TAG_VERSION="${GITHUB_REF_NAME#v}"
28
+ PACKAGE_VERSION="$(node -p "require('./package.json').version")"
29
+ if [[ "${TAG_VERSION}" != "${PACKAGE_VERSION}" ]]; then
30
+ echo "Tag version ${TAG_VERSION} does not match package.json version ${PACKAGE_VERSION}."
31
+ exit 1
32
+ fi
33
+
21
34
  - name: Publish
22
- run: npm publish --access public
23
- env:
24
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
35
+ run: npm publish --access public --provenance
@@ -139,7 +139,10 @@ jobs:
139
139
  fi
140
140
 
141
141
  VERSION_NUM="${VERSION#v}"
142
- git clone https://x-access-token:${TAP_REPO_TOKEN_HOMEBREW}@github.com/f/homebrew-tap.git tap
142
+ if ! git clone https://x-access-token:${TAP_REPO_TOKEN_HOMEBREW}@github.com/f/homebrew-tap.git tap; then
143
+ echo "::warning::Skipping Homebrew tap update because cloning f/homebrew-tap failed."
144
+ exit 0
145
+ fi
143
146
  mkdir -p tap/Casks
144
147
  cat > tap/Casks/poke-gate.rb << EOF
145
148
  cask "poke-gate" do
@@ -170,5 +173,12 @@ jobs:
170
173
  git config user.name "github-actions[bot]"
171
174
  git config user.email "github-actions[bot]@users.noreply.github.com"
172
175
  git add .
176
+ if git diff --cached --quiet; then
177
+ echo "Homebrew cask is already up to date."
178
+ exit 0
179
+ fi
173
180
  git commit -m "Update poke-gate to ${VERSION}"
174
- git push
181
+ if ! git push; then
182
+ echo "::warning::Skipping Homebrew tap update because pushing to f/homebrew-tap failed."
183
+ exit 0
184
+ fi
@@ -286,7 +286,7 @@
286
286
  "@executable_path/../Frameworks",
287
287
  );
288
288
  MACOSX_DEPLOYMENT_TARGET = 15.0;
289
- MARKETING_VERSION = 0.3.2;
289
+ MARKETING_VERSION = 0.3.4;
290
290
  PRODUCT_BUNDLE_IDENTIFIER = "dev.fka.Poke-macOS-Gate";
291
291
  PRODUCT_NAME = "$(TARGET_NAME)";
292
292
  REGISTER_APP_GROUPS = YES;
@@ -322,7 +322,7 @@
322
322
  "@executable_path/../Frameworks",
323
323
  );
324
324
  MACOSX_DEPLOYMENT_TARGET = 15.0;
325
- MARKETING_VERSION = 0.3.2;
325
+ MARKETING_VERSION = 0.3.4;
326
326
  PRODUCT_BUNDLE_IDENTIFIER = "dev.fka.Poke-macOS-Gate";
327
327
  PRODUCT_NAME = "$(TARGET_NAME)";
328
328
  REGISTER_APP_GROUPS = YES;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "poke-gate",
3
- "version": "0.3.3",
3
+ "version": "0.3.5",
4
4
  "description": "Expose your machine to your Poke AI assistant via MCP tunnel",
5
5
  "type": "module",
6
6
  "bin": {
7
- "poke-gate": "./bin/poke-gate.js"
7
+ "poke-gate": "bin/poke-gate.js"
8
8
  },
9
9
  "scripts": {
10
10
  "start": "node src/app.js",