From 0ebc9aa55cac4458b456e854ed711f868d068226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Augusto=20Elesb=C3=A3o?= Date: Fri, 23 Sep 2022 19:33:27 +0200 Subject: [PATCH] fix: release process (#33) * fix: use NPM_AUTH_TOKEN env var with yarn * fix: docs generation --- .github/workflows/docs.yaml | 6 ++++-- .github/workflows/publish.yml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index d7808a6..c222639 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -4,7 +4,7 @@ name: Deploy docs on: # Runs on every release release: - types: [released] + types: [published] # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: @@ -36,8 +36,10 @@ jobs: cache: yarn - name: Install dependencies run: yarn install --immutable + - name: Build code + run: yarn build:all - name: Build docs - run: yarn run docs + run: yarn docs - name: Upload docs folder uses: actions/upload-pages-artifact@v1 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad39d4d..63925dd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,7 @@ name: Publish package to npmjs on: release: - types: [released] + types: [published] jobs: build: @@ -16,4 +16,4 @@ jobs: - run: yarn install --immutable - run: yarn run publish:all env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}