Build & release artifacts when a Git tag is pushed
Build & release artifacts when a Git tag is pushed
Releasing on tag push is the canonical way to ship versioned binaries. The trigger filter shape differs across platforms; the actual build is identical.
Conversion notes
- •On Bitbucket, tag-driven pipelines live under `pipelines.tags.<glob>`.
Side-by-side implementation
name: release
on:
push:
tags: ['v*']
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with: { node-version: 20 }
- run: npm ci && npm run build:release
- uses: softprops/action-gh-release@v2
with:
files: dist/*.tar.gz
release:
image: node:20
rules:
- if: '$CI_COMMIT_TAG'
script:
- npm ci && npm run build:release
artifacts:
paths: [dist/]
release:
name: 'Release $CI_COMMIT_TAG'
description: 'Generated by CI'
tag_name: '$CI_COMMIT_TAG'
version: 2.1
jobs:
release:
docker: [{ image: cimg/node:20.10 }]
steps:
- checkout
- run: npm ci && npm run build:release
- run: gh release create $CIRCLE_TAG dist/*.tar.gz
workflows:
release:
jobs:
- release:
filters:
branches: { ignore: /.*/ }
tags: { only: /^v.*/ }
image: node:20
pipelines:
tags:
'v*':
- step:
name: release
caches: [node]
script:
- npm ci && npm run build:release
artifacts: ['dist/**']
Related Tools
YAML Formatter
Format and validate YAML. Convert YAML to JSON or JSON to YAML. Supports 2 and 4 space indentation.
Cron Builder
Visual builder for cron-job schedules.
Gitignore Generator
Generate .gitignore files for any language, framework, or IDE — 100+ templates, 100% client-side.
JSON Schema Generator
Generate a JSON Schema from one or more sample JSONs — drafts 2020-12, 2019-09, 7, 6, 4. Detects formats (date-time, email, uuid, ipv4, uri), extracts $defs, validates with AJV, and exports to YAML, TypeScript, and Zod. 100% in your browser.
AI Coding Rules
Curated rules-file library and generator for Cursor, Claude Code, GitHub Copilot, Windsurf, Cline, Aider, Continue, and Cody. Browse 20 hand-crafted .cursorrules / CLAUDE.md / copilot-instructions.md files for popular stacks, build a custom one with the wizard, or convert any rules file between AI-tool formats.