Skip to content

Commit 3963fbe

Browse files
committed
chore: 👷 CI Release workflow
1 parent 2484794 commit 3963fbe

File tree

4 files changed

+82
-2
lines changed

4 files changed

+82
-2
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: BlankParticle

.github/workflows/release.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release 🚀
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
release:
13+
permissions:
14+
id-token: write
15+
contents: write
16+
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout Code 🛎
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup Pnpm 📦
25+
uses: pnpm/action-setup@v2
26+
27+
- name: Setup Node.js 🟩
28+
uses: actions/setup-node@v4
29+
with:
30+
cache: "pnpm"
31+
node-version: "20"
32+
33+
- name: Install Dependencies 📦
34+
run: pnpm install
35+
36+
- name: Create Git Release 🏷
37+
run: pnpx changelogithub
38+
env:
39+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
40+
41+
- name: Build 🏗
42+
run: pnpm build
43+
44+
- name: Publish to NPM 🚀
45+
env:
46+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
47+
NPM_CONFIG_PROVENANCE: true
48+
run: |
49+
npm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
50+
pnpm publish --access public --no-git-checks

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src/
2+
README.md
3+
biome.json
4+
.github/

package.json

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"name": "tailwind-plugin-realtime-colors",
3-
"main": "dist/plugin.js",
3+
"main": "dist/plugin.cjs",
4+
"module": "dist/plugin.js",
5+
"version": "0.0.0",
6+
"description": "A Tailwind CSS plugin that allows you to load colors from URL of Realtime Colors",
47
"type": "module",
58
"scripts": {
69
"dev": "tsup src/*.ts --watch --dts",
@@ -24,5 +27,27 @@
2427
},
2528
"peerDependencies": {
2629
"tailwindcss": "^3.3.5"
27-
}
30+
},
31+
"repository": {
32+
"type": "git",
33+
"url": "https://github.com/BlankParticle/tailwind-plugin-realtime-colors"
34+
},
35+
"bugs": {
36+
"url": "https://github.com/BlankParticle/tailwind-plugin-realtime-colors/issues"
37+
},
38+
"homepage": "https://github.com/BlankParticle/tailwind-plugin-realtime-colors",
39+
"keywords": ["tailwindcss", "tailwind", "tailwind-plugin", "realtime-colors"],
40+
"funding": [
41+
{
42+
"type": "github",
43+
"url": "https://github.com/sponsors/BlankParticle"
44+
}
45+
],
46+
"author": {
47+
"name": "BlankParticle",
48+
"email": "[email protected]",
49+
"url": "https://blankparticle.in"
50+
},
51+
"packageManager": "[email protected]",
52+
"license": "MIT"
2853
}

0 commit comments

Comments
 (0)