Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit cc08029

Browse files
committed
chore: cleanup github workflows
1 parent 7c3184e commit cc08029

4 files changed

Lines changed: 55 additions & 164 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 54 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,68 @@
1-
name: Publish to GitHub Packages
1+
name: publish
2+
23
on:
3-
release:
4-
types: [created]
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
58

69
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Type check
28+
run: npm run typecheck
29+
30+
- name: Run linter
31+
run: npm run lint
32+
33+
- name: Run tests
34+
run: npm test -- --run
35+
36+
- name: Build
37+
run: npm run build
38+
739
publish:
40+
needs: test
841
runs-on: ubuntu-latest
42+
943
permissions:
1044
contents: read
1145
packages: write
46+
id-token: write
47+
48+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
1249
steps:
1350
- uses: actions/checkout@v4
14-
51+
1552
- uses: actions/setup-node@v4
1653
with:
1754
node-version: '20'
18-
registry-url: 'https://npm.pkg.github.com'
19-
20-
- run: npm ci
21-
- run: npm test
22-
23-
- run: npm publish
55+
registry-url: 'https://registry.npmjs.org'
56+
57+
- name: Install dependencies
58+
run: npm ci
59+
60+
- name: Build
61+
run: npm run build
62+
63+
- name: Publish to npm
64+
run: |
65+
echo "Publishing @frugally3683/agent-loop-plugin@$(node -p "require('./package.json').version")"
66+
npm publish --access public
2467
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 84 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@frugally3683/agent-loop-plugin",
3-
"version": "4.5.6",
3+
"version": "4.5.7",
44
"description": "Minimal Task Continuation Plugin - Automatically continues sessions when incomplete tasks remain",
55
"type": "module",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)