From 40581b6ca79025220911c0b93591fced94f0525a Mon Sep 17 00:00:00 2001 From: larry kirschner Date: Tue, 18 Feb 2020 09:23:12 -0800 Subject: [PATCH] run on release again for now --- .github/workflows/gpr-publish.yml | 30 ++++++++++++++++++++++++++++++ .github/workflows/npmpublish.yml | 31 ------------------------------- 2 files changed, 30 insertions(+), 31 deletions(-) create mode 100644 .github/workflows/gpr-publish.yml delete mode 100644 .github/workflows/npmpublish.yml diff --git a/.github/workflows/gpr-publish.yml b/.github/workflows/gpr-publish.yml new file mode 100644 index 0000000..ab07544 --- /dev/null +++ b/.github/workflows/gpr-publish.yml @@ -0,0 +1,30 @@ +name: publish package +on: + release: + types: [created] +jobs: + build: + runs-on: ubuntu-latest + steps: + - run: echo ${{github.ref}} + - run: export v="${{github.ref}}" && echo "${v##*/}" + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + - run: npm ci + # - run: npm test + gpr-publish: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 12 + registry-url: https://npm.pkg.github.com/ + scope: "@beatthat" + - run: npm ci + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml deleted file mode 100644 index e2af32a..0000000 --- a/.github/workflows/npmpublish.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: publish package -# on: -# release: -# types: [created] -on: push -jobs: - build: - runs-on: ubuntu-latest - steps: - - run: echo ${{github.ref}} - - run: export v="${{github.ref}}" && echo "${v##*/}" - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 - with: - node-version: 12 - - run: npm ci - # - run: npm test - # publish-gpr: - # needs: build - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - uses: actions/setup-node@v1 - # with: - # node-version: 12 - # registry-url: https://npm.pkg.github.com/ - # scope: "@beatthat" - # - run: npm ci - # - run: npm publish - # env: - # NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}