Merge pull request #41 from vndv/fix/remove-deprecated-tools-and-norm… #29
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 | |
| on: | |
| push: | |
| branches: [main] | |
| concurrency: release | |
| permissions: | |
| contents: read | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e | |
| with: | |
| node-version: 22 | |
| cache: npm | |
| - run: node --version && npm --version | |
| - run: npm ci --ignore-scripts | |
| - run: npm run ci | |
| release: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| needs: verify | |
| permissions: | |
| actions: write | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 | |
| with: | |
| fetch-depth: 0 | |
| persist-credentials: false | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e | |
| with: | |
| node-version: 24 | |
| registry-url: https://registry.npmjs.org | |
| cache: npm | |
| - run: node --version && npm --version | |
| - run: npm ci --ignore-scripts | |
| - name: Create version PR or publish | |
| id: changesets | |
| uses: changesets/action@a45c4d594aa4e2c509dc14a9f2b3b67ba3780d0d | |
| with: | |
| version: npm run version-packages | |
| publish: npm run publish-packages | |
| commit: "chore: version packages" | |
| title: "chore: version packages" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Trigger CI for version PR | |
| if: steps.changesets.outputs.hasChangesets == 'true' | |
| run: gh workflow run ci.yml --ref changeset-release/main | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |