name: Release on: push: branches: - main concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: ci: name: CI uses: ./.github/workflows/main.yml docs: name: Documentation uses: ./.github/workflows/documentation.yml with: is-release: true secrets: inherit deploy: name: Deploy release runs-on: ubuntu-latest needs: [ci, docs] permissions: contents: read id-token: write steps: - name: Check out project uses: actions/checkout@v4 with: # Fetch all history for all branches and tags, which is needed for the release script. fetch-depth: 0 # Pass in an administrator token to get around branch protection. token: ${{ secrets.GH_TOKEN_REDALLEN }} - name: Set up and build project uses: ./.github/actions/setup-project with: skip-build-cache: true - name: Set up npm for trusted publishing run: | npm install --global npm@11.21.1 node --version npm --version - name: Deploy to NPM and Github run: .github/release.sh env: GH_PR_TOKEN: ${{ secrets.GH_PR_TOKEN }}