Skip to content

ci: harden release workflow (#2) #16

ci: harden release workflow (#2)

ci: harden release workflow (#2) #16

Workflow file for this run

name: Release
on:
push:
branches:
- main
permissions:
contents: read
jobs:
release:
if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
runs-on: ubuntu-latest
environment:
name: release
deployment: false
concurrency:
group: release-${{ github.repository }}-main
cancel-in-progress: false
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Set up Vite+
uses: voidzero-dev/setup-vp@9446e853b27985e00fb1b21193be026fc09198db # v1
with:
version: "0.1.19"
node-version-file: ".node-version"
cache: false
run-install: |
args: ['--frozen-lockfile']
- name: Run checks
run: vp check
- name: Run tests
run: vp test
- name: Build dist
run: vp pack
- name: Semantic release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: vp run release