Skip to content

Commit

Permalink
ci: update package.json, setup npm publish with provenance
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel-Develops committed Aug 28, 2024
1 parent 8885951 commit d0e74c1
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
contents: write
issues: write
pull-requests: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -31,5 +32,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: |
npx semantic-release
25 changes: 19 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
{
"name": "bdp-ui",
"version": "1.1.1",
"description": "A UI library for the Bitcoin Dev Project",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"license": "MIT",
"files": [
"dist",
"README.md"
],
"exports": {
".": {
"import": "./dist/index.mjs",
Expand All @@ -16,9 +22,14 @@
"types": "./dist/icons.d.ts"
}
},
"files": [
"dist", "README.md"
],
"homepage": "https://github.com/bitcoin-dev-project/bdp-ui",
"repository": {
"type": "git",
"url": "git+https://github.com/bitcoin-dev-project/bdp-ui.git"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build:css": "tailwindcss -i src/styles/tailwind.css -o src/styles/tailwind.output.css --minify",
"watch:css": "tailwindcss -i src/styles/tailwind.css -o src/styles/tailwind.output.css --watch",
Expand All @@ -30,8 +41,6 @@
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
},
"license": "MIT",
"description": "",
"peerDependencies": {
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
Expand Down Expand Up @@ -69,5 +78,9 @@
"tsup": "^8.1.0",
"typescript": "^5.5.2"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"dependencies": {
"clsx": "^2.1.1",
"tailwind-merge": "^2.5.2"
}
}
16 changes: 16 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5588,6 +5588,7 @@ __metadata:
"@types/react": "npm:^18.3.3"
"@types/react-dom": "npm:^18.3.0"
autoprefixer: "npm:^10.4.19"
clsx: "npm:^2.1.1"
concurrently: "npm:^8.2.2"
jest: "npm:^29.7.0"
jest-environment-jsdom: "npm:^29.7.0"
Expand All @@ -5596,6 +5597,7 @@ __metadata:
react-dom: "npm:^17.0.0 || ^18.0.0"
semantic-release: "npm:^24.0.0"
storybook: "npm:^8.1.10"
tailwind-merge: "npm:^2.5.2"
tailwindcss: "npm:^3.4.4"
tsup: "npm:^8.1.0"
typescript: "npm:^5.5.2"
Expand Down Expand Up @@ -6216,6 +6218,13 @@ __metadata:
languageName: node
linkType: hard

"clsx@npm:^2.1.1":
version: 2.1.1
resolution: "clsx@npm:2.1.1"
checksum: 10c0/c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839
languageName: node
linkType: hard

"cmd-shim@npm:^6.0.0":
version: 6.0.3
resolution: "cmd-shim@npm:6.0.3"
Expand Down Expand Up @@ -13905,6 +13914,13 @@ __metadata:
languageName: node
linkType: hard

"tailwind-merge@npm:^2.5.2":
version: 2.5.2
resolution: "tailwind-merge@npm:2.5.2"
checksum: 10c0/e43a9a468f7ba4ed5b4a399558d96d6270a3d8131dca111cccc803e71cc23885060d18d721f312a24fff0a75c567dbb30b2a87c18aba25eb4255df197d8170ab
languageName: node
linkType: hard

"tailwindcss@npm:^3.4.4":
version: 3.4.4
resolution: "tailwindcss@npm:3.4.4"
Expand Down

0 comments on commit d0e74c1

Please sign in to comment.