test(core): stabilize release gate timeouts (#167) #77
This file contains hidden or 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: Release npm | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: {} | |
| concurrency: | |
| group: release-npm-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| release: | |
| name: Semantic release | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| id-token: write | |
| pull-requests: write | |
| environment: | |
| name: npm-publish | |
| url: https://www.npmjs.com/package/@jcode.labs/ragmir | |
| steps: | |
| - name: Verify main branch | |
| run: test "${GITHUB_REF}" = "refs/heads/main" | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: https://registry.npmjs.org | |
| - name: Set up pnpm | |
| run: | | |
| corepack enable | |
| corepack prepare pnpm@11.9.0 --activate | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Validate release gate | |
| run: pnpm validate | |
| - name: Semantic release | |
| run: pnpm exec semantic-release | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Upload release verification artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ragmir-release-${{ github.sha }} | |
| path: release-artifacts/ |