From 898c4609f69b9245eebe48b7277a1ea56265a3b1 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 23 Jul 2020 10:42:15 +0300 Subject: [PATCH] npm publish script --- .github/workflows/npm-publish.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..25a3038 --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,25 @@ +name: npm publish +on: + release: + types: [published] + +jobs: + release: + name: publish + runs-on: ubuntu-latest + + steps: + - name: Begin CI... + uses: actions/checkout@v2 + + - name: Use Node 12 + uses: actions/setup-node@v1 + with: + node-version: 12.x + registry-url: https://registry.npmjs.org + + - name: NPM Publish + run: npm publish --access public + working-directory: gantt-task-react + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}