From 6e4dd3ce6f30157caa11b3ab6b6019637b5c9ac8 Mon Sep 17 00:00:00 2001 From: Jesse Clark Date: Thu, 28 Apr 2022 18:07:03 +0300 Subject: [PATCH] add yml script to publish to nmp. (#17) --- .github/workflows/npmRelease.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/npmRelease.yml diff --git a/.github/workflows/npmRelease.yml b/.github/workflows/npmRelease.yml new file mode 100644 index 0000000..0035e03 --- /dev/null +++ b/.github/workflows/npmRelease.yml @@ -0,0 +1,24 @@ +name: publish + +on: + release: + types: [created] + +jobs: + publish: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Push package to npmjs.com + uses: actions/setup-node@v1 + with: + node-version: 14 + registry-url: https://registry.npmjs.org/ + + - run: npm install + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}