From eb4bb684b4e5b2e3707cd0903f1c269390bc7dea Mon Sep 17 00:00:00 2001 From: Stephen McDonald Date: Wed, 20 Oct 2021 11:39:17 +1100 Subject: [PATCH] Add npm publish workflow for psp client --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..143d5ae --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +name: publish + +on: + release: + types: [created] + +jobs: + publish-npm: + name: publish to npm + runs-on: ubuntu-latest + steps: + + - name: configure wombat dressing repository + uses: actions/setup-node@v1 + with: + node-version: '12.x' + registry-url: https://wombat-dressing-room.appspot.com + scope: '@google-pay' + + - name: publish @google-pay/psp-client to npm (via wombat dressing) + run: cd google-pay-psp-client && npm publish --access=public + env: + NODE_AUTH_TOKEN: ${{secrets.TOKEN_PSP_CLIENT}} \ No newline at end of file