Skip to content

Commit 49aa6f3

Browse files
authored
ci: add release-please (#30)
1 parent e8f4868 commit 49aa6f3

File tree

6 files changed

+65
-1
lines changed

6 files changed

+65
-1
lines changed

.github/release-please-config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"last-release-sha": "ac67d5e66179b6b2de89c0708b765dd1f6e72df6",
4+
"include-component-in-tag": false,
5+
"packages": {
6+
"packages/catppuccin-tailwindcss": {
7+
"package-name": "",
8+
"release-type": "node"
9+
}
10+
}
11+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"packages/catppuccin-tailwindcss": "0.1.6"
3+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
name: Build
2+
13
on:
24
workflow_dispatch:
35
push:
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: release-please
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
8+
permissions:
9+
contents: write
10+
id-token: write
11+
pull-requests: write
12+
issues: write
13+
14+
jobs:
15+
release-please:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: googleapis/release-please-action@v4
19+
id: release
20+
with:
21+
config-file: .github/release-please-config.json
22+
manifest-file: .github/release-please-manifest.json
23+
outputs:
24+
release_created: ${{ steps.release.outputs['packages/catppuccin-tailwindcss--release_created'] }}
25+
tag_name: ${{ steps.release.outputs['packages/catppuccin-tailwindcss--tag_name'] }}
26+
27+
release:
28+
runs-on: ubuntu-latest
29+
needs: release-please
30+
if: ${{ needs.release-please.outputs.release_created }}
31+
steps:
32+
- uses: actions/checkout@v4
33+
- uses: pnpm/action-setup@v4
34+
- uses: actions/setup-node@v4
35+
with:
36+
cache: pnpm
37+
node-version: 22
38+
registry-url: https://registry.npmjs.org
39+
- run: pnpm install --frozen-lockfile
40+
- run: pnpm publish
41+
working-directory: ./packages/catppuccin-tailwindcss
42+
env:
43+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

packages/catppuccin-tailwindcss/package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
{
22
"name": "@catppuccin/tailwindcss",
33
"version": "1.0.0-beta.2",
4-
"description": "💨 Soothing pastel theme for Tailwind CSS",
4+
"description": "💨 Soothing pastel theme for TailwindCSS",
55
"author": "Catppuccin Org <releases@catppuccin.com>",
66
"license": "MIT",
7+
"publishConfig": {
8+
"access": "public",
9+
"provenance": true,
10+
"registry": "https://registry.npmjs.org"
11+
},
712
"engines": {
813
"node": ">=22.0.0"
914
},

0 commit comments

Comments
 (0)