Skip to content

Commit

Permalink
fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
zcpua committed Jul 11, 2023
1 parent dfbe5ab commit 788214b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Node.js Package
name: Node.js Package 4.1
env:
APPVERSION: v4.0.${{ github.run_number }}
APPVERSION: 4.1.${{ github.run_number }}
on:
workflow_dispatch:
push:
Expand All @@ -22,7 +22,9 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: yarn install
- run: sed -i '3s/\([0-9]\{1,3\}\.[0-9]\{1,3\}\)\.[0-9]\{1,3\}/\1.${{ github.run_number }}/g' package.json
# - run: sed -i '3s/\([0-9]\{1,3\}\.[0-9]\{1,3\}\)\.[0-9]\{1,3\}/\1.${{ github.run_number }}/g' package.json
- name: sed version
run: sed -i '3s/[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}/${{ env.APPVERSION }}/g' package.json
- run: npm run build
- run: npm publish
- name: GH Release
Expand Down
2 changes: 1 addition & 1 deletion src/discord.ws.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export class WsMessage {
return;
}
const message = msg.d;
this.log("message event", msg.t);
// this.log("message event", msg.t);
switch (msg.t) {
case "READY":
this.emitSystem("ready", message.user);
Expand Down

0 comments on commit 788214b

Please sign in to comment.