mirror of
https://github.com/lukaszraczylo/cloudflare-crawl-mcp.git
synced 2026-07-13 04:57:05 +00:00
Update.
This commit is contained in:
@@ -1,12 +1,21 @@
|
|||||||
name: Test and Release
|
name: Test and Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
paths-ignore:
|
||||||
|
- "**.md"
|
||||||
|
- "**/release.yml"
|
||||||
|
- "static/**"
|
||||||
|
- "docs/**"
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
release:
|
|
||||||
types: [published]
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: write
|
||||||
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@@ -24,16 +33,34 @@ jobs:
|
|||||||
release:
|
release:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: github.event_name == 'release'
|
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Calculate version
|
||||||
|
id: version
|
||||||
|
uses: lukaszraczylo/shared-actions/.github/actions/semver@main
|
||||||
|
with:
|
||||||
|
config-file: semver.yaml
|
||||||
|
|
||||||
|
- name: Create tag
|
||||||
|
if: steps.version.outputs.version_tag != ''
|
||||||
|
run: |
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
git tag ${{ steps.version.outputs.version_tag }}
|
||||||
|
git push origin ${{ steps.version.outputs.version_tag }}
|
||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
|
if: steps.version.outputs.version_tag != ''
|
||||||
with:
|
with:
|
||||||
node-version: '20'
|
node-version: '20'
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: npm ci
|
|
||||||
- run: npm run build
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
|
if: steps.version.outputs.version_tag != ''
|
||||||
uses: goreleaser/goreleaser-action@v6
|
uses: goreleaser/goreleaser-action@v6
|
||||||
with:
|
with:
|
||||||
version: latest
|
version: latest
|
||||||
|
|||||||
+15
@@ -0,0 +1,15 @@
|
|||||||
|
version: 1
|
||||||
|
force:
|
||||||
|
existing: true
|
||||||
|
strict: false
|
||||||
|
minor: 1
|
||||||
|
wording:
|
||||||
|
patch:
|
||||||
|
- update
|
||||||
|
- initial
|
||||||
|
- fix
|
||||||
|
minor:
|
||||||
|
- improve
|
||||||
|
- release
|
||||||
|
major:
|
||||||
|
- breaking
|
||||||
Reference in New Issue
Block a user