From d27493d9052090ef5e4a1b3e8b16639f2cd394bb Mon Sep 17 00:00:00 2001 From: Chris Shaw Date: Fri, 6 Mar 2020 13:24:01 +1100 Subject: [PATCH] Fixed deployments to NPM --- .github/workflows/build.yml | 1 - .github/workflows/publish.yml | 10 ++++++++++ .github/workflows/release.yml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d70ddc5..d4a09fc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,7 +3,6 @@ name: Build on: pull_request: branches-ignore: - - develop - master push: branches: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dd98007..6ef3141 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,6 +20,11 @@ jobs: node-version: '10.x' registry-url: 'https://registry.npmjs.org' + - name: Install dependencies + run: yarn install + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN_ADMIN }} + - name: Publish package run: npm publish env: @@ -38,6 +43,11 @@ jobs: with: registry-url: 'https://npm.pkg.github.com' + - name: Install dependencies + run: yarn install + env: + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN_ADMIN }} + - name: Publish package run: npm publish env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7d5eb89..a47b073 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,4 +15,4 @@ jobs: steps: - uses: toolmantim/release-drafter@v5.2.0 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}