Skip to content

Commit

Permalink
feat: task to publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
fran-ink committed Nov 11, 2024
1 parent e03059c commit 054806e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish_to_npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "@inkonchain/ink-kit",
"version": "1.0.0",
"version": "0.0.1",
"description": "",
"main": "dist/index.cjs.js",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"files": [
"/dist"
"/dist",
"./tailwind.config.mjs"
],
"exports": {
".": {
Expand Down

0 comments on commit 054806e

Please sign in to comment.