| 1 | name: Release |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | tags: |
| 6 | - 'v*' |
| 7 | |
| 8 | jobs: |
| 9 | release: |
| 10 | permissions: |
| 11 | id-token: write |
| 12 | contents: write |
| 13 | |
| 14 | runs-on: ubuntu-latest |
| 15 | steps: |
| 16 | - uses: actions/checkout@v6 |
| 17 | with: |
| 18 | fetch-depth: 0 |
| 19 | |
| 20 | - uses: pnpm/action-setup@v4 |
| 21 | |
| 22 | - uses: actions/setup-node@v6 |
| 23 | with: |
| 24 | node-version: lts/* |
| 25 | registry-url: https://registry.npmjs.org/ |
| 26 | |
| 27 | - run: npx changelogithub |
| 28 | env: |
| 29 | GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |
| 30 | |
| 31 | - run: npm i -g npm@latest |
| 32 | - run: pnpm i |
| 33 | - run: pnpm run ci:publish |
| 34 | |
| 35 | - name: Publish to VSCE & OVSX |
| 36 | run: pnpm run publish |
| 37 | working-directory: ./packages/vscode |
| 38 | env: |
| 39 | VSCE_TOKEN: ${{secrets.VSCE_PAT}} |
| 40 | OVSX_TOKEN: ${{secrets.OVSX_PAT}} |
| 41 |