fix: exclude from optimize deps in vite (#49) #26
This file contains 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 | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
verify: | |
name: Verify | |
uses: ./.github/workflows/verify.yml | |
changesets: | |
name: Publish Changesets | |
needs: verify | |
permissions: | |
contents: write | |
id-token: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install dependencies | |
uses: ./.github/actions/install-deps | |
- name: PR or Publish to NPM | |
uses: changesets/action@v1 | |
with: | |
publish: pnpm release | |
createGithubReleases: ${{ github.ref == 'refs/heads/main' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish prerelease | |
# Only publish a prerelease if we didn't publish a release | |
if: steps.changesets.outputs.published != 'true' | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
npm config set "//registry.npmjs.org/:_authToken" "$NPM_TOKEN" | |
git reset --hard origin/main | |
pnpm clean | |
pnpm changeset version --no-git-tag --snapshot canary | |
pnpm build | |
pnpm changeset publish --no-git-tag --snapshot canary --tag canary |