| 1 |
name: Release |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
branches: [master] |
| 6 |
|
| 7 |
permissions: |
| 8 |
contents: write |
| 9 |
issues: write |
| 10 |
pull-requests: write |
| 11 |
id-token: write |
| 12 |
|
| 13 |
jobs: |
| 14 |
release: |
| 15 |
name: Release |
| 16 |
runs-on: ubuntu-latest |
| 17 |
timeout-minutes: 10 |
| 18 |
|
| 19 |
steps: |
| 20 |
- name: Checkout |
| 21 |
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6 |
| 22 |
with: |
| 23 |
token: ${{ secrets.GH_TOKEN }} |
| 24 |
|
| 25 |
- name: Use Node.js |
| 26 |
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6 |
| 27 |
with: |
| 28 |
node-version-file: .nvmrc |
| 29 |
|
| 30 |
- name: Setup pnpm |
| 31 |
uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4 |
| 32 |
with: |
| 33 |
run_install: true |
| 34 |
|
| 35 |
- name: Lint |
| 36 |
run: pnpm lint |
| 37 |
|
| 38 |
- name: Release |
| 39 |
env: |
| 40 |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |
| 41 |
run: pnpm dlx semantic-release |