Skip to content

Commit

Permalink
added the workflow for CI to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
TaTo30 committed Feb 19, 2024
1 parent 26fe2ba commit 4b0dd78
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/publish-package.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: publish-npm-package

on:
release:
types:
- published

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
force-depth: 0

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org

- name: Install packages
run: npm install

- name: Run tests and build
run: npm run build

- name: Publish packages
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


Binary file removed public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"resolveJsonModule": true
},
"include": ["src/**/*", "vite.config.ts", "vite.playground.ts", "playground/**/*", "shims.d.ts", "tests/**/*"],
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist", "public"]
}

0 comments on commit 4b0dd78

Please sign in to comment.