From 7a1ff4b58553f4e69dc4d7aab45d1ac5d59a9a40 Mon Sep 17 00:00:00 2001 From: Debasish Sahoo Date: Sat, 12 Oct 2019 13:27:49 +0530 Subject: [PATCH 1/2] Update npmpublish.yml --- .github/workflows/npmpublish.yml | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/npmpublish.yml diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml new file mode 100644 index 0000000..3ae89d4 --- /dev/null +++ b/.github/workflows/npmpublish.yml @@ -0,0 +1,47 @@ +name: Node.js Package + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + - run: npm test + + publish-npm: + needs: 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: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} + + publish-gpr: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + scope: '@your-github-username' + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} From 5c6a3a8aa0ca3e6da31e95cbac5eb0ae615eaaf1 Mon Sep 17 00:00:00 2001 From: Debasish Sahoo Date: Fri, 15 Nov 2019 01:49:07 +0530 Subject: [PATCH 2/2] Update npmpublish.yml --- .github/workflows/npmpublish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 3ae89d4..de7088b 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -1,4 +1,4 @@ -name: Node.js Package +name: filecreator-cli on: pull_request: @@ -41,7 +41,7 @@ jobs: with: node-version: 12 registry-url: https://npm.pkg.github.com/ - scope: '@your-github-username' + scope: '@debck' - run: npm publish env: NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}