Skip to content

[ci] release (#162) #157

[ci] release (#162)

[ci] release (#162) #157

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
ci:
uses: ./.github/workflows/ci.yml
changelog:
name: Changelog PR or Release
needs: ci
if: ${{ github.repository_owner == 'lilnasy' }}
runs-on: ubuntu-latest
permissions:
id-token: write # to allow the worker to identify itself to NPM
contents: write # to allow tagging and creating releases
pull-requests: write # to allow creating release PRs
steps:
- uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Init submodules
run: sh .github/workflows/init-submodules.sh
- name: Build
run: pnpm --filter @emotion-extract/vite build
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
version: sh .github/workflows/version.sh
publish: pnpm exec changeset publish
commit: "[ci] release"
title: "[ci] release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}