From 1c0ed7fec06d1d279fd05166491c7593ade78682 Mon Sep 17 00:00:00 2001 From: CWD Date: Mon, 21 Sep 2020 18:59:12 +0000 Subject: [PATCH] setting up for NPM publishing --- .github/workflows/main.yml | 19 +++++++++++++++++++ package.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..08aa19a --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,19 @@ +name: Publish + +on: + release: + types: [published] + +jobs: + build: + 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: yarn install + - run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} \ No newline at end of file diff --git a/package.json b/package.json index 8f50508..54bd03a 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "tc-auth-lib", + "name": "@topcoder-platform/tc-auth-lib", "version": "1.0.0", "description": "Topcoder Authentication lib ", "main": "index.js",