Skip to content

Commit

Permalink
Allow publishing without doing a release
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Aug 28, 2024
1 parent bf7d2a2 commit b1bc7e7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docs-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Package to npmjs
on:
workflow_dispatch:
inputs:
branch:
type: choice
description: Which branch to deploy docs from
required: true
options:
- main

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
cache: pnpm
- run: pnpm i -r
- run: npm run build
- run: npm run docs
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs
publish_branch: gh-pages
destination_dir: docs

0 comments on commit b1bc7e7

Please sign in to comment.