add semantic-release-monorepo to build semantic-release #68
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: 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 |