diff --git a/.github/workflows/publish_npm.yml b/.github/workflows/publish_npm.yml new file mode 100644 index 0000000..529d9af --- /dev/null +++ b/.github/workflows/publish_npm.yml @@ -0,0 +1,22 @@ +name: publish_npm +on: + workflow_dispatch: + push: + tags: [ '**' ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: 'Checkout GitHub Action' + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '22.x' + registry-url: 'https://registry.npmjs.org' + - run: npm install + - run: npm rebuild + - run: npm run-script build + - name: Install to npm + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.TOOLKIT_NPM_SECRET}}