mirror of
https://github.com/jakejarvis/stanza.git
synced 2026-07-16 18:05:58 -04:00
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
concurrency:
|
|
group: release-${{ github.workflow }}-${{ github.ref }}
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
release:
|
|
name: Version + publish
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
id-token: write
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
# Changesets needs full history to compute the changelog.
|
|
fetch-depth: 0
|
|
|
|
- uses: voidzero-dev/setup-vp@v1
|
|
with:
|
|
node-version: 24
|
|
cache: true
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Build registry
|
|
run: vp run registry:build
|
|
|
|
- name: Lint
|
|
run: vp check
|
|
|
|
- name: Tests
|
|
run: vp test
|
|
|
|
- name: Build
|
|
run: vp run build:cli
|
|
|
|
- name: Create release PR or publish
|
|
id: changesets
|
|
uses: changesets/action@v1
|
|
with:
|
|
version: vp exec changeset version
|
|
publish: vp run release
|
|
title: "chore: release"
|
|
commit: "chore: release"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
# Enable provenance — requires `id-token: write` above.
|
|
NPM_CONFIG_PROVENANCE: "true"
|