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",