Skip to content

Commit 5f8c9e5

Browse files
committed
chore: revolt-api -> stoat-api
1 parent 40bc79c commit 5f8c9e5

File tree

5 files changed

+314
-95
lines changed

5 files changed

+314
-95
lines changed

.github/workflows/build_and_publish.yml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ name: Build and Publish API
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
67

78
jobs:
89
build:
910
runs-on: ubuntu-latest
1011

12+
permissions:
13+
contents: write
14+
1115
steps:
1216
- name: Checkout repository
1317
uses: actions/checkout@v3
@@ -24,51 +28,57 @@ jobs:
2428
- name: Commit changes
2529
uses: EndBug/add-and-commit@v9
2630
with:
27-
author_name: Revolt CI
28-
author_email: revolt-ci@users.noreply.github.com
31+
author_name: Stoat CI
32+
author_email: stoat-ci@users.noreply.github.com
2933
message: "chore: build library from latest spec [skip ci]"
3034

3135
- name: Find current API version
3236
run: echo "api_version=$(jq -r .info.version OpenAPI.json)" >> $GITHUB_ENV
37+
3338
- name: Check if tag exists for current version
3439
uses: mukunku/tag-exists-action@v1.2.0
3540
id: checkTag
3641
with:
3742
tag: ${{ env.api_version }}
43+
3844
- name: Update version in package.json
3945
if: ${{ steps.checkTag.outputs.exists }} != true
4046
run: |
4147
jq '.version="${{ env.api_version }}"' package.json > temp.json
4248
mv temp.json package.json
49+
4350
- name: Commit changes
4451
if: ${{ steps.checkTag.outputs.exists }} != true
4552
uses: EndBug/add-and-commit@v9
4653
with:
47-
author_name: Revolt CI
48-
author_email: revolt-ci@users.noreply.github.com
54+
author_name: Stoat CI
55+
author_email: stoat-ci@users.noreply.github.com
4956
tag: "${{ env.api_version }} --force"
5057
message: "chore: bump version to ${{ env.api_version }} [skip ci]"
58+
5159
- name: Publish to NPM
5260
if: ${{ steps.checkTag.outputs.exists }} != true
5361
uses: JS-DevTools/npm-publish@v1
5462
with:
5563
token: ${{ secrets.NPM_TOKEN }}
5664

57-
- name: Checkout revolt.js repository
65+
- name: Checkout stoat.js repository
5866
if: ${{ steps.checkTag.outputs.exists }} != true
5967
uses: actions/checkout@v3
6068
with:
61-
repository: revoltchat/revolt.js
62-
path: revolt.js
63-
token: ${{ secrets.PAT }}
64-
- name: Update revolt-api dependency
69+
repository: stoatchat/javascript-client-sdk
70+
path: stoat.js
71+
token: ${{ secrets.GITHUB_TOKEN }}
72+
73+
- name: Update stoat-api dependency
6574
if: ${{ steps.checkTag.outputs.exists }} != true
66-
run: cd revolt.js && pnpm add revolt-api@${{ env.api_version }}
75+
run: cd stoat.js && pnpm add stoat-api@${{ env.api_version }}
76+
6777
- name: Commit changes
6878
if: ${{ steps.checkTag.outputs.exists }} != true
6979
uses: EndBug/add-and-commit@v4
7080
with:
71-
cwd: "revolt.js"
72-
author_name: Revolt CI
73-
author_email: revolt-ci@users.noreply.github.com
74-
message: "chore: update revolt-api to ${{ env.api_version }}"
81+
cwd: "stoat.js"
82+
author_name: Stoat CI
83+
author_email: stoat-ci@users.noreply.github.com
84+
message: "chore: update stoat-api to ${{ env.api_version }}"

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Revolt
3+
Copyright (c) 2022-2025 Pawel Makles
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)