Skip to content

chore: bump version to v1.3.0 and update changelog #17

chore: bump version to v1.3.0 and update changelog

chore: bump version to v1.3.0 and update changelog #17

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
with:
go-version: '1.25.10'
cache: true
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: '~> v2'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
npm-publish:
needs: goreleaser
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
- name: Copy README to npm package
run: cp README.md npm/README.md
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Get version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Update npm package version
working-directory: npm
run: |
npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version --allow-same-version
- name: Publish to npm
working-directory: npm
run: npm publish --provenance --access public
pypi-build:
needs: goreleaser
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
- name: Copy README to pip package
run: cp README.md pip/README.md
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Get version from tag
id: version
run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
- name: Build platform-specific wheels
working-directory: pip
run: python scripts/build_wheels.py --version ${{ steps.version.outputs.VERSION }}
- name: Upload wheels as artifacts
uses: actions/upload-artifact@v4
with:
name: python-wheels
path: pip/dist/*.whl
if-no-files-found: error
pypi-publish:
needs: pypi-build
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/kothaset
permissions:
id-token: write
steps:
- name: Download wheels
uses: actions/download-artifact@v4
with:
name: python-wheels
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1