Skip to content

feat: initial release - complete Docusaurus plugin with testing and C… #1

feat: initial release - complete Docusaurus plugin with testing and C…

feat: initial release - complete Docusaurus plugin with testing and C… #1

Workflow file for this run

name: Auto Publish
on:
push:
branches: [main]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build TypeScript
run: npm run build
- name: Configure git user
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Release with semantic-release
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 25.0.2
branch: main
extra_plugins: |
@semantic-release/github
@semantic-release/git
@semantic-release/npm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}