Skip to content

Commit

Permalink
more auto-publish attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
bmschmidt committed Apr 1, 2024
1 parent b53df56 commit 7a071d5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to npm
name: Publish to npm and GitHub Pages

on:
push:
Expand All @@ -15,7 +15,18 @@ jobs:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- name: Configure Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Actions"
- run: npm version prerelease --preid=next
- run: npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Deploy TSDoc to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: gh-pages
force_orphan: true

0 comments on commit 7a071d5

Please sign in to comment.