-
Notifications
You must be signed in to change notification settings - Fork 13
50 lines (42 loc) · 1.28 KB
/
release.yml
File metadata and controls
50 lines (42 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 }}