Skip to content

Commit

Permalink
more config
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanderp committed Jan 4, 2022
1 parent 45da833 commit de19c99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ jobs:
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs
folder: docs
single-commit: true
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- run: git config --global user.email "[email protected]"

# upgrade npm version in package.json to the tag used in the release.
- run: npm version ${{ github.event.release.tag_name }}
- run: npm version --no-git-tag-version ${{ github.event.release.tag_name }}

# build the project
- run: npm run build
Expand All @@ -37,7 +37,7 @@ jobs:
- run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPM_TOKEN }}"

# publish to NPM -> there is one caveat, continue reading for the fix
- run: npm publish --tag ${{ github.event.release.target_commitish }}
- run: npm publish
env:
# Use a token to publish to NPM. See below for how to set it up
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down

0 comments on commit de19c99

Please sign in to comment.