add semantic-release-monorepo to build semantic-release #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Realtime - Configure and publish package | |
on: | |
push: | |
tags: ["superviz-realtime-[0-9]+.[0-9]+.[0-9]+**"] | |
pull_request: | |
branches: [master] | |
paths: | |
- "packages/realtime/**" | |
jobs: | |
configure-superviz-realtime: | |
if: ${{ github.event_name == 'pull_request' }} | |
defaults: | |
run: | |
working-directory: packages/realtime | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ">=20.8.1" | |
- run: git config --global user.name SuperViz | |
- run: git config --global user.email dev@superviz.com | |
- name: Install dependencies and run Semantic release | |
run: | | |
npm install | |
npm audit signatures | |
npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
publish: | |
needs: configure-superviz-realtime | |
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main | |
permissions: | |
id-token: write # Required for authentication using OIDC | |
pull-requests: write # Required for writing the pull request note |