Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork6
chore(sveltevietnam.dev): set version as V1#191
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:Changesets | |
| on: | |
| push: | |
| branches: | |
| -main | |
| paths: | |
| -".changeset/**" | |
| -".github/workflows/changesets.yaml" | |
| workflow_dispatch: | |
| env: | |
| CI:true | |
| jobs: | |
| Version: | |
| if:github.repository == 'sveltevietnam/sveltevietnam.dev'# prevents this action from running on forks | |
| permissions: | |
| contents:write# to create release (changesets/action) | |
| id-token:write# OpenID Connect token needed for provenance | |
| pull-requests:write# to create pull request (changesets/action) | |
| timeout-minutes:5 | |
| runs-on:ubuntu-latest | |
| steps: | |
| -name:Checkout repository | |
| uses:actions/checkout@v4 | |
| with: | |
| fetch-depth:0 | |
| -name:Setup pnpm | |
| uses:pnpm/action-setup@v4 | |
| -name:Setup node | |
| uses:actions/setup-node@v4 | |
| with: | |
| node-version:22 | |
| cache:pnpm | |
| -name:Install dependencies | |
| run:pnpm install --ignore-scripts --no-frozen-lockfile | |
| -name:Create release PR or Publish to npm | |
| uses:changesets/action@v1 | |
| with: | |
| version:pnpm ci:version | |
| publish:pnpm ci:publish | |
| commit:"chore(release): changesets versioning & publication" | |
| title:"Changesets: Versioning & Publication" | |
| createGithubReleases:true | |
| env: | |
| GITHUB_TOKEN:${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN:${{ secrets.NPM_TOKEN }} | |