chore: add pre release #2
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: ${{ github.workflow }}-${{ github.ref }} | |
| permissions: | |
| actions: read | |
| checks: read | |
| contents: write | |
| deployments: read | |
| issues: write | |
| discussions: read | |
| packages: write | |
| pull-requests: write | |
| repository-projects: write | |
| security-events: read | |
| statuses: write | |
| env: | |
| NODE_VERSION: 22.14.0 | |
| PNPM_VERSION: 9.0.0 | |
| jobs: | |
| release: | |
| name: Versioning | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: ${{ env.PNPM_VERSION }} | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| cache: pnpm | |
| - name: Install changeset | |
| run: pnpm install -g changeset | |
| - name: Install dependencies | |
| run: pnpm install --prefer-offline --frozen-lockfile | |
| - name: Bundle artifacts | |
| run: pnpm bundle | |
| - name: Create Versioning Pull Request | |
| id: changesets | |
| uses: changesets/[email protected] | |
| with: | |
| createGithubReleases: true | |
| version: changeset version | |
| publish: changeset release | |
| env: | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| GITHUB_TOKEN: ${{ github.token }} |