diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..499295d --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,26 @@ +name: Publish +on: + release: + types: + - published + +jobs: + npm-publish: + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 21 + registry-url: "https://registry.npmjs.org" + + - name: Install Dependencies + run: npm ci + + - name: Publish to npm registry + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..c5173a9 --- /dev/null +++ b/.npmignore @@ -0,0 +1,14 @@ +.github +.nyc_output +coverage +examples +node_modules +test +.dockerignore +.editorconfig +.eslintrc +.gitignore +.nycrc.yaml +.pre-commit-config.yaml +.prettierrc +Dockerfile