Skip to content

ci: add docs and package workflow #1

ci: add docs and package workflow

ci: add docs and package workflow #1

name: Publish Package
on:
push:
branches: ['main', 'next', 'release/*']
jobs:
npm-publish:
runs-on: ubuntu-latest
permissions:
issues: write
contents: write
packages: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
cache: 'npm'
- run: npm install
- run: npm run release
env:
NPM_CONFIG_REGISTRY: 'https://npm.pkg.github.com'
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Merge Release into Trunk
uses: devmasx/merge-branch@854d3ac71ed1e9deb668e0074781b81fdd6e771f
if: github.ref == 'refs/heads/release/1.x'
with:
type: now
from_branch: release/1.x
target_branch: main
github_token: ${{ secrets.GITHUB_TOKEN }}