Skip to content

Docs: Add documentation for npm publishing process #7

Docs: Add documentation for npm publishing process

Docs: Add documentation for npm publishing process #7

Workflow file for this run

name: Publish to react-hover-video-player.dev
on:
workflow_dispatch:
push:
branches: [main]
jobs:
build:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
run: npm ci
- name: Build site
run: npm run docs:build
- uses: actions/upload-pages-artifact@v1
with:
name: "github-pages"
path: ./docs/.vuepress/dist
retention-days: 1
deploy:
timeout-minutes: 5
runs-on: ubuntu-latest
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1