libroadcast-cli 1.1.0 → 1.1.1
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.
- package/.github/workflows/release.yml +58 -0
- package/package.json +17 -6
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
version:
|
|
7
|
+
description: 'Version tag (e.g. v1.2.3)'
|
|
8
|
+
required: true
|
|
9
|
+
description:
|
|
10
|
+
description: 'Description'
|
|
11
|
+
required: false
|
|
12
|
+
default: ''
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
id-token: write # Required for OIDC
|
|
16
|
+
contents: read
|
|
17
|
+
|
|
18
|
+
jobs:
|
|
19
|
+
release:
|
|
20
|
+
runs-on: ubuntu-latest
|
|
21
|
+
permissions:
|
|
22
|
+
contents: write
|
|
23
|
+
id-token: write
|
|
24
|
+
steps:
|
|
25
|
+
- run: |
|
|
26
|
+
[[ "${{ github.event.inputs.version }}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]] || \
|
|
27
|
+
(echo "Version must start with 'v' and match 'v<major>.<minor>.<patch>'" && exit 1)
|
|
28
|
+
- uses: actions/checkout@v5
|
|
29
|
+
with:
|
|
30
|
+
fetch-depth: 0
|
|
31
|
+
ref: ${{ github.ref }}
|
|
32
|
+
- uses: pnpm/action-setup@v4
|
|
33
|
+
- uses: actions/setup-node@v5
|
|
34
|
+
with:
|
|
35
|
+
node-version: '24'
|
|
36
|
+
registry-url: https://registry.npmjs.org/
|
|
37
|
+
cache: pnpm
|
|
38
|
+
- run: pnpm install
|
|
39
|
+
- run: |
|
|
40
|
+
pnpm run build
|
|
41
|
+
git config user.name "github-actions"
|
|
42
|
+
git config user.email "github-actions@github.com"
|
|
43
|
+
NPM_VERSION="${GITHUB_VERSION#v}"
|
|
44
|
+
pnpm version "$NPM_VERSION" --allow-same-version
|
|
45
|
+
env:
|
|
46
|
+
GITHUB_VERSION: ${{ github.event.inputs.version }}
|
|
47
|
+
|
|
48
|
+
- name: Publish to npm
|
|
49
|
+
run: |
|
|
50
|
+
pnpm publish --provenance --access public
|
|
51
|
+
git push origin HEAD --follow-tags
|
|
52
|
+
|
|
53
|
+
- name: Publish to github
|
|
54
|
+
uses: softprops/action-gh-release@v2
|
|
55
|
+
with:
|
|
56
|
+
tag_name: ${{ github.event.inputs.version }}
|
|
57
|
+
name: Release ${{ github.event.inputs.version }}
|
|
58
|
+
body: ${{ github.event.inputs.description }}
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libroadcast-cli",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "",
|
|
3
|
+
"version": "1.1.1",
|
|
4
|
+
"description": "CLI to help with broadcast maintenance on Lichess",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
-
"keywords": [
|
|
7
|
-
|
|
6
|
+
"keywords": [
|
|
7
|
+
"lichess",
|
|
8
|
+
"broadcast",
|
|
9
|
+
"cli"
|
|
10
|
+
],
|
|
11
|
+
"author": "Sérgio Glórias",
|
|
8
12
|
"license": "MIT",
|
|
9
|
-
"packageManager": "pnpm@10.20.0+sha512.cf9998222162dd85864d0a8102e7892e7ba4ceadebbf5a31f9c2fce48dfce317a9c53b9f6464d1ef9042cba2e02ae02a9f7c143a2b438cd93c91840f0192b9dd",
|
|
10
13
|
"type": "commonjs",
|
|
11
14
|
"dependencies": {
|
|
12
15
|
"@lichess-org/types": "^2.0.94",
|
|
@@ -19,8 +22,16 @@
|
|
|
19
22
|
"bin": {
|
|
20
23
|
"libroadcast": "./dist/index.js"
|
|
21
24
|
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"url": "https://github.com/SergioGlorias/broadcastCLI.git",
|
|
27
|
+
"type": "git"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/SergioGlorias/broadcastCLI/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/SergioGlorias/broadcastCLI",
|
|
22
33
|
"scripts": {
|
|
23
34
|
"build": "tsc",
|
|
24
35
|
"start": "pnpm build && node ./dist/index.js"
|
|
25
36
|
}
|
|
26
|
-
}
|
|
37
|
+
}
|