v3.21.0 #496
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: | |
| tags: | |
| - v* | |
| # Remove default permissions of GITHUB_TOKEN for security | |
| # https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs | |
| permissions: {} | |
| jobs: | |
| release: | |
| concurrency: | |
| group: release | |
| permissions: | |
| contents: write | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| with: | |
| fetch-depth: 0 | |
| - run: corepack enable | |
| - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | |
| with: | |
| node-version: 24.9.0 | |
| registry-url: "https://registry.npmjs.org/" | |
| cache: "pnpm" | |
| - name: Update npm for trusted publishing | |
| run: npm install -g [email protected] | |
| - run: pnpm config set registry https://registry.npmjs.org | |
| - run: npm config set registry https://registry.npmjs.org | |
| - name: 📦 Install dependencies | |
| run: pnpm install | |
| - name: 🛠 Prepare build environment | |
| run: pnpm dev:prepare | |
| - name: 📦 Release | |
| run: npm publish --access public |