Skip to content

Commit e9d45b1

Browse files
committed
chore(deps): apply repo-ops dependency and Actions upgrades
1 parent 8e44fde commit e9d45b1

2 files changed

Lines changed: 106 additions & 106 deletions

File tree

.github/workflows/ci.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -9,66 +9,66 @@ jobs:
99
check:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v6
12+
- uses: actions/checkout@v6.0.2
1313

14-
- uses: actions/setup-node@v6
15-
with:
16-
node-version: "24"
14+
- uses: actions/setup-node@v6.4.0
15+
with:
16+
node-version: "24"
1717

18-
- uses: oven-sh/setup-bun@v2
19-
with:
20-
bun-version: 1.3.13
18+
- uses: oven-sh/setup-bun@v2.2.0
19+
with:
20+
bun-version: 1.3.13
2121

22-
- name: Install dependencies
23-
run: bun install --frozen-lockfile
22+
- name: Install dependencies
23+
run: bun install --frozen-lockfile
2424

25-
- name: CI gate
26-
run: bun run ci
25+
- name: CI gate
26+
run: bun run ci
2727

28-
- name: Unit tests with coverage
29-
env:
30-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31-
run: bun run test:coverage
28+
- name: Unit tests with coverage
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
run: bun run test:coverage
3232

33-
- name: Assert Node.js version
34-
run: node -e "const v=+process.version.slice(1).split('.')[0]; if(v<22)process.exit(1)"
33+
- name: Assert Node.js version
34+
run: node -e "const v=+process.version.slice(1).split('.')[0]; if(v<22)process.exit(1)"
3535

3636
prerelease-pack:
3737
needs: check
3838
runs-on: ubuntu-latest
3939
steps:
40-
- uses: actions/checkout@v6
41-
42-
- uses: actions/setup-node@v6
43-
with:
44-
node-version: "24"
45-
46-
- uses: oven-sh/setup-bun@v2
47-
with:
48-
bun-version: 1.3.13
49-
50-
- name: Install dependencies
51-
run: bun install --frozen-lockfile
52-
53-
- name: Build
54-
run: bun run build
55-
56-
- name: Assert Node.js version
57-
run: node -e "const v=+process.version.slice(1).split('.')[0]; if(v<22)process.exit(1)"
58-
59-
- name: Pack npm tarball (prerelease snapshot)
60-
id: pack
61-
run: |
62-
set -euo pipefail
63-
npm pack
64-
SRC=$(find . -maxdepth 1 -type f -name 'rethunk-github-mcp-*.tgz' -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2-)
65-
DEST="rethunk-github-mcp-prerelease-${{ github.sha }}.tgz"
66-
mv "$SRC" "$DEST"
67-
echo "tarball=$DEST" >> "$GITHUB_OUTPUT"
68-
69-
- uses: actions/upload-artifact@v7
70-
with:
71-
name: npm-pack-prerelease-${{ github.sha }}
72-
path: ${{ steps.pack.outputs.tarball }}
73-
if-no-files-found: error
74-
retention-days: 90
40+
- uses: actions/checkout@v6.0.2
41+
42+
- uses: actions/setup-node@v6.4.0
43+
with:
44+
node-version: "24"
45+
46+
- uses: oven-sh/setup-bun@v2.2.0
47+
with:
48+
bun-version: 1.3.13
49+
50+
- name: Install dependencies
51+
run: bun install --frozen-lockfile
52+
53+
- name: Build
54+
run: bun run build
55+
56+
- name: Assert Node.js version
57+
run: node -e "const v=+process.version.slice(1).split('.')[0]; if(v<22)process.exit(1)"
58+
59+
- name: Pack npm tarball (prerelease snapshot)
60+
id: pack
61+
run: |
62+
set -euo pipefail
63+
npm pack
64+
SRC=$(find . -maxdepth 1 -type f -name 'rethunk-github-mcp-*.tgz' -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2-)
65+
DEST="rethunk-github-mcp-prerelease-${{ github.sha }}.tgz"
66+
mv "$SRC" "$DEST"
67+
echo "tarball=$DEST" >> "$GITHUB_OUTPUT"
68+
69+
- uses: actions/upload-artifact@v7.0.1
70+
with:
71+
name: npm-pack-prerelease-${{ github.sha }}
72+
path: ${{ steps.pack.outputs.tarball }}
73+
if-no-files-found: error
74+
retention-days: 90

.github/workflows/release.yml

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- "v*.*.*"
6+
- "v*.*.*"
77

88
concurrency:
99
group: release-${{ github.ref }}
@@ -16,66 +16,66 @@ jobs:
1616
contents: write
1717
packages: write
1818
steps:
19-
- uses: actions/checkout@v6
19+
- uses: actions/checkout@v6.0.2
2020

21-
- uses: actions/setup-node@v6
22-
with:
23-
node-version: "24"
21+
- uses: actions/setup-node@v6.4.0
22+
with:
23+
node-version: "24"
2424

25-
- uses: oven-sh/setup-bun@v2
26-
with:
27-
bun-version: 1.3.13
25+
- uses: oven-sh/setup-bun@v2.2.0
26+
with:
27+
bun-version: 1.3.13
2828

29-
- name: Assert Node.js version
30-
run: node -e "const v=+process.version.slice(1).split('.')[0]; if(v<22)process.exit(1)"
29+
- name: Assert Node.js version
30+
run: node -e "const v=+process.version.slice(1).split('.')[0]; if(v<22)process.exit(1)"
3131

32-
- name: Install dependencies
33-
run: bun install --frozen-lockfile
32+
- name: Install dependencies
33+
run: bun install --frozen-lockfile
3434

35-
- name: CI gate
36-
run: bun run ci
35+
- name: CI gate
36+
run: bun run ci
3737

38-
- name: Unit tests with coverage
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
run: bun run test:coverage
38+
- name: Unit tests with coverage
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: bun run test:coverage
4242

4343

44-
- name: Create tarball for GitHub Release
45-
id: pack
46-
run: |
47-
set -euo pipefail
48-
npm pack
49-
tarball=$(find . -maxdepth 1 -name 'rethunk-github-mcp-*.tgz' -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2-)
50-
echo "tarball=${tarball#./}" >> "$GITHUB_OUTPUT"
44+
- name: Create tarball for GitHub Release
45+
id: pack
46+
run: |
47+
set -euo pipefail
48+
npm pack
49+
tarball=$(find . -maxdepth 1 -name 'rethunk-github-mcp-*.tgz' -printf '%T@ %p\n' | sort -rn | head -1 | cut -d' ' -f2-)
50+
echo "tarball=${tarball#./}" >> "$GITHUB_OUTPUT"
5151
52-
- name: Publish to GitHub Packages (npm registry)
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56-
run: |
57-
set -euo pipefail
58-
node <<'NODE'
59-
const fs = require("node:fs");
60-
const p = JSON.parse(fs.readFileSync("package.json", "utf8"));
61-
p.name = "@rethunk-ai/github-mcp";
62-
p.publishConfig = {
63-
registry: "https://npm.pkg.github.com",
64-
access: "public",
65-
};
66-
fs.writeFileSync("package.json", JSON.stringify(p, null, 2) + "\n");
67-
NODE
68-
{
69-
echo "@rethunk-ai:registry=https://npm.pkg.github.com"
70-
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}"
71-
} > .npmrc
72-
npm publish --access public
52+
- name: Publish to GitHub Packages (npm registry)
53+
env:
54+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
55+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: |
57+
set -euo pipefail
58+
node <<'NODE'
59+
const fs = require("node:fs");
60+
const p = JSON.parse(fs.readFileSync("package.json", "utf8"));
61+
p.name = "@rethunk-ai/github-mcp";
62+
p.publishConfig = {
63+
registry: "https://npm.pkg.github.com",
64+
access: "public",
65+
};
66+
fs.writeFileSync("package.json", JSON.stringify(p, null, 2) + "\n");
67+
NODE
68+
{
69+
echo "@rethunk-ai:registry=https://npm.pkg.github.com"
70+
echo "//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}"
71+
} > .npmrc
72+
npm publish --access public
7373
74-
- name: Create GitHub Release (official gh CLI, no third-party action)
75-
env:
76-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77-
run: |
78-
set -euo pipefail
79-
gh release create "${GITHUB_REF_NAME}" "${{ steps.pack.outputs.tarball }}" \
80-
--verify-tag \
81-
--generate-notes
74+
- name: Create GitHub Release (official gh CLI, no third-party action)
75+
env:
76+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
run: |
78+
set -euo pipefail
79+
gh release create "${GITHUB_REF_NAME}" "${{ steps.pack.outputs.tarball }}" \
80+
--verify-tag \
81+
--generate-notes

0 commit comments

Comments
 (0)