@rimori/client 2.4.0-next.1 → 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.
|
|
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.
|
|
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"
|
|
@@ -15,6 +15,7 @@ jobs:
|
|
|
15
15
|
runs-on: ubuntu-latest
|
|
16
16
|
permissions:
|
|
17
17
|
contents: write
|
|
18
|
+
id-token: write
|
|
18
19
|
|
|
19
20
|
steps:
|
|
20
21
|
- name: Checkout repository
|
|
@@ -27,6 +28,8 @@ jobs:
|
|
|
27
28
|
with:
|
|
28
29
|
node-version: '20'
|
|
29
30
|
cache: 'yarn'
|
|
31
|
+
registry-url: 'https://registry.npmjs.org'
|
|
32
|
+
provenance: true
|
|
30
33
|
|
|
31
34
|
- name: Get version from package.json
|
|
32
35
|
id: get_version
|
|
@@ -68,7 +71,7 @@ jobs:
|
|
|
68
71
|
yarn install --frozen-lockfile
|
|
69
72
|
yarn build
|
|
70
73
|
|
|
71
|
-
- name: Create GitHub Release
|
|
74
|
+
- name: Create GitHub Release
|
|
72
75
|
uses: softprops/action-gh-release@v1
|
|
73
76
|
with:
|
|
74
77
|
tag_name: v${{ steps.get_version.outputs.version }}
|
|
@@ -79,22 +82,31 @@ jobs:
|
|
|
79
82
|
### Changes in this release
|
|
80
83
|
|
|
81
84
|
${{ steps.get_changelog.outputs.changelog }}
|
|
82
|
-
|
|
83
|
-
---
|
|
84
|
-
|
|
85
|
-
**Note:** This is a prerelease. It will be promoted to a stable release after testing.
|
|
86
|
-
prerelease: true
|
|
85
|
+
prerelease: false
|
|
87
86
|
generate_release_notes: true
|
|
88
87
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
89
88
|
|
|
90
|
-
- name: Publish to npm (
|
|
89
|
+
- name: Publish to npm (stable)
|
|
91
90
|
id: npm_publish
|
|
92
|
-
if: secrets.NPM_TOKEN != ''
|
|
93
|
-
env:
|
|
94
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
95
91
|
run: |
|
|
96
|
-
|
|
97
|
-
|
|
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'"
|
|
98
110
|
|
|
99
111
|
- name: Send Slack notification - Success
|
|
100
112
|
if: success()
|
|
@@ -121,7 +133,7 @@ jobs:
|
|
|
121
133
|
},
|
|
122
134
|
{
|
|
123
135
|
"type": "mrkdwn",
|
|
124
|
-
"text": "*Type:*\
|
|
136
|
+
"text": "*Type:*\nStable + Next"
|
|
125
137
|
},
|
|
126
138
|
{
|
|
127
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
|
@@ -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({
|
|
@@ -18,8 +18,6 @@ import { AccomplishmentController, AccomplishmentPayload } from '../controller/A
|
|
|
18
18
|
import { RimoriCommunicationHandler, RimoriInfo } from './CommunicationHandler';
|
|
19
19
|
import { Translator } from '../controller/TranslationController';
|
|
20
20
|
import { Logger } from './Logger';
|
|
21
|
-
// import { setTheme } from '../../../react-client/src/plugin/ThemeSetter';
|
|
22
|
-
// import { StandaloneClient } from './StandaloneClient';
|
|
23
21
|
|
|
24
22
|
// Add declaration for WorkerGlobalScope
|
|
25
23
|
declare const WorkerGlobalScope: any;
|