diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index d7808a67..c222639c 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 ad39d4dc..63925dd8 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 }}