Skip to content

fix(release): publish untagged package versions #21

fix(release): publish untagged package versions

fix(release): publish untagged package versions #21

Workflow file for this run

name: Release
on:
push:
branches:
- main
workflow_dispatch:
inputs:
publish_bootstrap:
description: Publish the initial 0.1.0 package to npm's latest tag
required: true
type: boolean
default: false
permissions:
contents: write
id-token: write
pull-requests: write
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
env:
RELEASE_BASE_SHA: ${{ github.event.before }}
RELEASE_BOOTSTRAP: ${{ inputs.publish_bootstrap }}
steps:
- name: Checkout
uses: actions/checkout@v7.0.0
with:
fetch-depth: 0
- name: Set up Vite+
uses: voidzero-dev/setup-vp@v1.15.0
with:
node-version-file: .node-version
cache: false
run-install: false
- name: Install dependencies
run: vp install --frozen-lockfile
- name: Check
run: vp run -r check
- name: Test
run: vp run -r test
- name: Build
run: vp run -r build
- name: Create release pull request or publish
uses: changesets/action@v1.9.0
with:
publish: vp run release
title: 'chore: version packages'
commit: 'chore: version packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}