Skip to content

add semantic-release-monorepo to build semantic-release #68

add semantic-release-monorepo to build semantic-release

add semantic-release-monorepo to build semantic-release #68

name: Socket client - Configure and publish package
on:
push:
tags: ["superviz-socket-client-[0-9]+.[0-9]+.[0-9]+**"]
pull_request:
branches: [master]
paths:
- "packages/socket-client/**"
jobs:
configure_superviz_socket_client:
if: ${{ github.event_name == 'pull_request' }}
defaults:
run:
working-directory: packages/socket-client
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 [email protected]
- 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_socket_client
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