Skip to content

Commit

Permalink
fix: release process (#33)
Browse files Browse the repository at this point in the history
* fix: use NPM_AUTH_TOKEN env var with yarn

* fix: docs generation
  • Loading branch information
aelesbao authored Sep 23, 2022
1 parent f7c4824 commit 0ebc9aa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish package to npmjs

on:
release:
types: [released]
types: [published]

jobs:
build:
Expand All @@ -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 }}

0 comments on commit 0ebc9aa

Please sign in to comment.