diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..ae361bf --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,23 @@ +name: Publish Package to npmjs +on: + push: + tags: + - 'v*' +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + # Setup .npmrc file to publish to npm + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + registry-url: 'https://registry.npmjs.org' + - run: npm install --legacy-peer-deps + - run: rollup -c + - run: npm publish --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package-lock.json b/package-lock.json index 238722f..7f2db36 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "isp-ui-kit", - "version": "0.9.0", + "version": "0.9.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "isp-ui-kit", - "version": "0.9.0", + "version": "0.9.1", "license": "ISC", "dependencies": { "@monaco-editor/react": "^4.6.0", diff --git a/package.json b/package.json index 0abe24d..1abebb9 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "react ui lib for project", "main": "dist/index.js", "types": "dist/index.d.ts", - "license": "ISC", + "license": "MIT", "keywords": [], "files": [ "dist"