name: Release Script Test defaults: run: working-directory: scripts/release permissions: contents: read concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true on: push: branches: - main - patch-release - next paths: - "scripts/release/**" - ".github/workflows/release-script-test.yml" pull_request: paths: - "scripts/release/**" - ".github/workflows/release-script-test.yml" jobs: test: name: Test runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Setup Node.js uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0 with: # Minimal version the release script required node-version: "20" cache: "yarn" - name: Install Dependencies run: yarn install --immutable - name: Test run: yarn test