diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml deleted file mode 100644 index 79737aa..0000000 --- a/.forgejo/workflows/release.yml +++ /dev/null @@ -1,68 +0,0 @@ -name: Release - -on: - push: - tags: - - "v*" - workflow_dispatch: - -permissions: - contents: write - -jobs: - release: - runs-on: docker - container: - image: docker.io/library/node:22 - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Install dependencies - run: npm ci - - - name: Build - run: npm run build - - - name: Test - run: npm test - - - name: Publish to npm - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - # Set authToken explicitly — actions/setup-node was the only consumer - # of registry-url + NODE_AUTH_TOKEN, and we dropped it for Forgejo - # compat. The literal npmjs registry stays the same. - cat > ~/.npmrc </dev/null || echo "") - if [ -n "$prev" ]; then - notes=$(git log --pretty=format:'- %s' "${prev}..${TAG}") - else - notes=$(git log --pretty=format:'- %s' "${TAG}") - fi - body=$(jq -n --arg t "$TAG" --arg n "$notes" \ - '{tag_name:$t, name:$t, body:$n, draft:false, prerelease:false}') - curl -sSf -X POST "$FORGEJO_API/repos/$REPO/releases" \ - -H "Authorization: token $FORGEJO_TOKEN" \ - -H "Content-Type: application/json" \ - -d "$body" >/dev/null || \ - echo "Release may already exist for $TAG" diff --git a/.forgejo/workflows/ci.yml b/.github/workflows/ci.yml similarity index 68% rename from .forgejo/workflows/ci.yml rename to .github/workflows/ci.yml index c1f6f9e..c764d29 100644 --- a/.forgejo/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,33 +12,33 @@ permissions: jobs: lint-commits: name: Lint commits - runs-on: docker - container: - image: docker.io/library/node:22 + runs-on: ubuntu-latest if: github.event_name == 'pull_request' steps: - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: "22" + - name: Install dependencies run: npm ci - name: Validate conventional commits - run: | - npx commitlint \ - --from ${{ github.event.pull_request.base.sha }} \ - --to ${{ github.event.pull_request.head.sha }} \ - --verbose + run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose build-and-test: name: Build & test - runs-on: docker - container: - image: docker.io/library/node:22 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "22" + - name: Install dependencies run: npm ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..8a489af --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: Release + +on: + push: + tags: + - "v*" + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v4 + with: + node-version: "22" + registry-url: "https://registry.npmjs.org" + + - name: Install dependencies + run: npm ci + + - name: Build + run: npm run build + + - name: Test + run: npm test + + - name: Publish to npm + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: GitHub Release + uses: softprops/action-gh-release@v2 + with: + generate_release_notes: true diff --git a/LICENSE b/LICENSE index ee27d08..9d044e4 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2026 Deivid Soto +Copyright (c) 2026 buryni Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/glama.json b/glama.json index 2b7ca25..2c089d5 100644 --- a/glama.json +++ b/glama.json @@ -1,4 +1,4 @@ { "$schema": "https://glama.ai/mcp/schemas/server.json", - "maintainers": ["torrentclaw", "eividsoto"] + "maintainers": ["torrentclaw"] }