From 6b3ca6cfd03ba900e282b11bd94ac009a2786c5e Mon Sep 17 00:00:00 2001 From: Miguel Piedrafita Date: Mon, 18 Nov 2019 01:12:32 +0100 Subject: [PATCH] wip --- .github/workflows/npmpublish.yml | 31 ------------------------------- .github/workflows/publish-npm.yml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 31 deletions(-) delete mode 100644 .github/workflows/npmpublish.yml create mode 100644 .github/workflows/publish-npm.yml diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml deleted file mode 100644 index 99614d5..0000000 --- a/.github/workflows/npmpublish.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Node.js Package - -on: - release: - types: [created] - -jobs: - publish-npm: - 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 publish - env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} - - publish-gpr: - 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: '@sitesauce' - - run: yarn publish - env: - NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 0000000..055eb97 --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,18 @@ +name: Publish to NPM + +on: + release: + types: [created] + +jobs: + publish: + 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 publish + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}}