diff --git a/typescript/loopover/.github/workflows/npmpublish.yml b/typescript/loopover/.github/workflows/npmpublish.yml new file mode 100644 index 0000000..2cac15d --- /dev/null +++ b/typescript/loopover/.github/workflows/npmpublish.yml @@ -0,0 +1,21 @@ +name: Node.js Package + +on: + release: + types: [published] + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://registry.npmjs.org/ + - run: npm i -g pnpm + - run: pnpm install + - run: pnpm run build + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}