@synth1s/cloak 2.1.2 → 2.2.0

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,7 +8,7 @@ jobs:
8
8
  publish:
9
9
  runs-on: ubuntu-latest
10
10
  permissions:
11
- contents: read
11
+ contents: write
12
12
  id-token: write
13
13
  steps:
14
14
  - uses: actions/checkout@v4
@@ -16,8 +16,25 @@ jobs:
16
16
  with:
17
17
  node-version: 20
18
18
  registry-url: https://registry.npmjs.org
19
+
19
20
  - run: npm ci
20
21
  - run: node --test tests/*.test.js
21
- - run: npm publish --access public --provenance
22
+
23
+ - name: Set version from release tag
24
+ run: |
25
+ VERSION="${GITHUB_REF_NAME#v}"
26
+ npm version "$VERSION" --no-git-tag-version
27
+ echo "Publishing version $VERSION"
28
+
29
+ - name: Publish to npm
30
+ run: npm publish --access public --provenance
22
31
  env:
23
32
  NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33
+
34
+ - name: Commit version bump
35
+ run: |
36
+ git config user.name "github-actions[bot]"
37
+ git config user.email "github-actions[bot]@users.noreply.github.com"
38
+ git add package.json package-lock.json
39
+ git commit -m "chore: bump version to ${GITHUB_REF_NAME#v} [skip ci]" || true
40
+ git push origin HEAD:master
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synth1s/cloak",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "Cloak your Claude. Switch identities in seconds.",
5
5
  "type": "module",
6
6
  "bin": {