diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..527bfbb --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,24 @@ + +name: Publish on NPM + +on: + push: + paths: + - 'scripts/package.json' + branches: [ main ] + +jobs: + publish-npm: + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./scripts + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: https://registry.npmjs.org/ + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}