@rimori/client 2.4.0-next.2 → 2.4.0-next.3

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.
@@ -24,7 +24,7 @@ jobs:
24
24
  uses: actions/checkout@v4
25
25
  with:
26
26
  fetch-depth: 0
27
- token: ${{ secrets.GITHUB_TOKEN }}
27
+ token: ${{ secrets.PAT_TOKEN }}
28
28
 
29
29
  - name: Setup Node.js
30
30
  uses: actions/setup-node@v4
@@ -109,7 +109,7 @@ jobs:
109
109
  - name: Create Pull Request
110
110
  id: create_pr
111
111
  env:
112
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
112
+ GH_TOKEN: ${{ secrets.PAT_TOKEN }}
113
113
  run: |
114
114
  NEW_VERSION="${{ steps.bump_version.outputs.new_version }}"
115
115
  BRANCH_NAME="release/v$NEW_VERSION"
@@ -28,6 +28,8 @@ jobs:
28
28
  with:
29
29
  node-version: '20'
30
30
  cache: 'yarn'
31
+ registry-url: 'https://registry.npmjs.org'
32
+ provenance: true
31
33
 
32
34
  - name: Get version from package.json
33
35
  id: get_version
@@ -69,7 +71,7 @@ jobs:
69
71
  yarn install --frozen-lockfile
70
72
  yarn build
71
73
 
72
- - name: Create GitHub Release (Prerelease)
74
+ - name: Create GitHub Release
73
75
  uses: softprops/action-gh-release@v1
74
76
  with:
75
77
  tag_name: v${{ steps.get_version.outputs.version }}
@@ -80,18 +82,31 @@ jobs:
80
82
  ### Changes in this release
81
83
 
82
84
  ${{ steps.get_changelog.outputs.changelog }}
83
-
84
- ---
85
-
86
- **Note:** This is a prerelease. It will be promoted to a stable release after testing.
87
- prerelease: true
85
+ prerelease: false
88
86
  generate_release_notes: true
89
87
  token: ${{ secrets.GITHUB_TOKEN }}
90
88
 
91
- - name: Publish to npm
89
+ - name: Publish to npm (stable)
92
90
  id: npm_publish
93
91
  run: |
94
- npm publish --provenance --access public --tag prerelease || echo "npm publish skipped (may already exist)"
92
+ npm publish --provenance --access public --tag latest
93
+
94
+ - name: Publish to npm (next)
95
+ id: npm_publish_next
96
+ run: |
97
+ VERSION="${{ steps.get_version.outputs.version }}"
98
+ NEXT_VERSION="${VERSION}-next.0"
99
+
100
+ # Temporarily update package.json version for next publish
101
+ node -e "const fs = require('fs'); const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8')); pkg.version = '$NEXT_VERSION'; fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');"
102
+
103
+ # Publish with next tag
104
+ npm publish --provenance --access public --tag next
105
+
106
+ # Restore original version (don't commit)
107
+ git checkout package.json
108
+
109
+ echo "Published version: $NEXT_VERSION with tag 'next'"
95
110
 
96
111
  - name: Send Slack notification - Success
97
112
  if: success()
@@ -118,7 +133,7 @@ jobs:
118
133
  },
119
134
  {
120
135
  "type": "mrkdwn",
121
- "text": "*Type:*\nPrerelease"
136
+ "text": "*Type:*\nStable + Next"
122
137
  },
123
138
  {
124
139
  "type": "mrkdwn",
@@ -106,7 +106,7 @@ export class EventBusHandler {
106
106
  const blackListedEventIds = [];
107
107
  const eventHandler = (data) => {
108
108
  if (blackListedEventIds.some((item) => item.eventId === data.eventId && item.sender === data.sender)) {
109
- console.log('BLACKLISTED EVENT ID', data.eventId, data);
109
+ // console.log('BLACKLISTED EVENT ID', data.eventId, data);
110
110
  return;
111
111
  }
112
112
  blackListedEventIds.push({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rimori/client",
3
- "version": "2.4.0-next.2",
3
+ "version": "2.4.0-next.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {
@@ -162,7 +162,7 @@ export class EventBusHandler {
162
162
  const blackListedEventIds: { eventId: number; sender: string }[] = [];
163
163
  const eventHandler = (data: EventBusMessage) => {
164
164
  if (blackListedEventIds.some((item) => item.eventId === data.eventId && item.sender === data.sender)) {
165
- console.log('BLACKLISTED EVENT ID', data.eventId, data);
165
+ // console.log('BLACKLISTED EVENT ID', data.eventId, data);
166
166
  return;
167
167
  }
168
168
  blackListedEventIds.push({