Skip to content

Commit d0e74c1

Browse files
ci: update package.json, setup npm publish with provenance
1 parent 8885951 commit d0e74c1

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
contents: write
1010
issues: write
1111
pull-requests: write
12+
id-token: write
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v4
@@ -31,5 +32,6 @@ jobs:
3132
env:
3233
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3334
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
NPM_CONFIG_PROVENANCE: true
3436
run: |
3537
npx semantic-release

package.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
{
22
"name": "bdp-ui",
33
"version": "1.1.1",
4+
"description": "A UI library for the Bitcoin Dev Project",
45
"main": "./dist/index.js",
56
"module": "./dist/index.mjs",
67
"types": "./dist/index.d.ts",
8+
"license": "MIT",
9+
"files": [
10+
"dist",
11+
"README.md"
12+
],
713
"exports": {
814
".": {
915
"import": "./dist/index.mjs",
@@ -16,9 +22,14 @@
1622
"types": "./dist/icons.d.ts"
1723
}
1824
},
19-
"files": [
20-
"dist", "README.md"
21-
],
25+
"homepage": "https://github.com/bitcoin-dev-project/bdp-ui",
26+
"repository": {
27+
"type": "git",
28+
"url": "git+https://github.com/bitcoin-dev-project/bdp-ui.git"
29+
},
30+
"publishConfig": {
31+
"access": "public"
32+
},
2233
"scripts": {
2334
"build:css": "tailwindcss -i src/styles/tailwind.css -o src/styles/tailwind.output.css --minify",
2435
"watch:css": "tailwindcss -i src/styles/tailwind.css -o src/styles/tailwind.output.css --watch",
@@ -30,8 +41,6 @@
3041
"storybook": "storybook dev -p 6006",
3142
"build-storybook": "storybook build"
3243
},
33-
"license": "MIT",
34-
"description": "",
3544
"peerDependencies": {
3645
"react": "^17.0.0 || ^18.0.0",
3746
"react-dom": "^17.0.0 || ^18.0.0"
@@ -69,5 +78,9 @@
6978
"tsup": "^8.1.0",
7079
"typescript": "^5.5.2"
7180
},
72-
"packageManager": "[email protected]"
81+
"packageManager": "[email protected]",
82+
"dependencies": {
83+
"clsx": "^2.1.1",
84+
"tailwind-merge": "^2.5.2"
85+
}
7386
}

yarn.lock

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5588,6 +5588,7 @@ __metadata:
55885588
"@types/react": "npm:^18.3.3"
55895589
"@types/react-dom": "npm:^18.3.0"
55905590
autoprefixer: "npm:^10.4.19"
5591+
clsx: "npm:^2.1.1"
55915592
concurrently: "npm:^8.2.2"
55925593
jest: "npm:^29.7.0"
55935594
jest-environment-jsdom: "npm:^29.7.0"
@@ -5596,6 +5597,7 @@ __metadata:
55965597
react-dom: "npm:^17.0.0 || ^18.0.0"
55975598
semantic-release: "npm:^24.0.0"
55985599
storybook: "npm:^8.1.10"
5600+
tailwind-merge: "npm:^2.5.2"
55995601
tailwindcss: "npm:^3.4.4"
56005602
tsup: "npm:^8.1.0"
56015603
typescript: "npm:^5.5.2"
@@ -6216,6 +6218,13 @@ __metadata:
62166218
languageName: node
62176219
linkType: hard
62186220

6221+
"clsx@npm:^2.1.1":
6222+
version: 2.1.1
6223+
resolution: "clsx@npm:2.1.1"
6224+
checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839
6225+
languageName: node
6226+
linkType: hard
6227+
62196228
"cmd-shim@npm:^6.0.0":
62206229
version: 6.0.3
62216230
resolution: "cmd-shim@npm:6.0.3"
@@ -13905,6 +13914,13 @@ __metadata:
1390513914
languageName: node
1390613915
linkType: hard
1390713916

13917+
"tailwind-merge@npm:^2.5.2":
13918+
version: 2.5.2
13919+
resolution: "tailwind-merge@npm:2.5.2"
13920+
checksum: 10c0/e43a9a468f7ba4ed5b4a399558d96d6270a3d8131dca111cccc803e71cc23885060d18d721f312a24fff0a75c567dbb30b2a87c18aba25eb4255df197d8170ab
13921+
languageName: node
13922+
linkType: hard
13923+
1390813924
"tailwindcss@npm:^3.4.4":
1390913925
version: 3.4.4
1391013926
resolution: "tailwindcss@npm:3.4.4"

0 commit comments

Comments
 (0)