Skip to content

Commit 18ed9c5

Browse files
authored
ci: add release-please (#45)
1 parent 6fcbff4 commit 18ed9c5

File tree

5 files changed

+76
-2
lines changed

5 files changed

+76
-2
lines changed

.github/release-please-config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"last-release-sha": "3890165d63b458be51891dca175b3d3cfc2ba011",
4+
"packages": {
5+
".": {
6+
"package-name": "",
7+
"release-type": "node"
8+
}
9+
}
10+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.1.1"
3+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.release_created }}
25+
tag_name: ${{ steps.release.outputs.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+
node-version: 22
37+
cache: pnpm
38+
registry-url: https://registry.npmjs.org
39+
- run: pnpm install --frozen-lockfile
40+
- run: pnpm publish
41+
env:
42+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,31 @@
22
"name": "@catppuccin/vitepress",
33
"type": "module",
44
"version": "0.1.1",
5+
"license": "MIT",
56
"description": "📝 Soothing pastel theme for VitePress",
6-
"author": "Catppuccin Org <releases@catppuccin.com>",
7+
"author": {
8+
"name": "Catppuccin Org",
9+
"email": "releases@catppuccin.com",
10+
"url": "https://catppuccin.com"
11+
},
712
"contributors": [
813
"willow <42willow@pm.me>"
914
],
10-
"license": "MIT",
15+
"publishConfig": {
16+
"access": "public",
17+
"provenance": true,
18+
"registry": "https://registry.npmjs.org"
19+
},
20+
"repository": {
21+
"type": "git",
22+
"url": "https://github.com/catppuccin/vitepress.git"
23+
},
24+
"bugs": {
25+
"url": "https://github.com/catppuccin/vitepress/issues"
26+
},
27+
"sponsor": {
28+
"url": "https://opencollective.com/catppuccin"
29+
},
1130
"files": [
1231
"theme/"
1332
],

0 commit comments

Comments
 (0)