Skip to content

ci: add automatic releases with semantic-release-monorepo #48

ci: add automatic releases with semantic-release-monorepo

ci: add automatic releases with semantic-release-monorepo #48

Workflow file for this run

name: ci
on:
workflow_dispatch: # allow manual trigger
pull_request: # on pull request changes
push:
branches: [main] # on commits to the main branch
jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: write # to publish releases
issues: write # to comment on released issues
pull-requests: write # to comment on released PRs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with: { node-version: 20.x }
- run: npm install -g pnpm@9
- run: pnpm install --frozen-lockfile
# - run: pnpm run test
# - run: pnpm run build
- run: unset GITHUB_ACTIONS && BRANCH_NAME=${{ github.head_ref }} pnpm run release --no-ci --dry-run --branches ${{ github.head_ref }} # TODO: remove extra flags after testing
env:
GITHUB_TOKEN: ${{ github.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}