Skip to content

Merge pull request #17 from razukc/chore/0.6.1-cleanup #17

Merge pull request #17 from razukc/chore/0.6.1-cleanup

Merge pull request #17 from razukc/chore/0.6.1-cleanup #17

Workflow file for this run

name: Publish Package
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to release (e.g., v1.0.0)'
required: true
type: string
permissions:
contents: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.tag || github.ref }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish to npm
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create GitHub Release
run: |
TAG_NAME=${{ github.event.inputs.tag || github.ref_name }}
gh release create $TAG_NAME \
--title "Release $TAG_NAME" \
--notes "## What's Changed
See [CHANGELOG.md](./CHANGELOG.md) for detailed changes.
## Installation
\`\`\`bash
npm install skeleton-crew@$TAG_NAME
\`\`\`
## Documentation
- [API Reference](./docs/api/reference.md)
- [Migration Guide](./docs/guides/migration-guide.md)" \
|| echo "Release may already exist, continuing..."
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}