Merge pull request #4045 from jaredpalmer/changeset-release/main #522
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 | |
| - next | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'jaredpalmer/formik' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| cache: yarn | |
| node-version-file: .nvmrc | |
| - name: Install Dependencies | |
| run: yarn install | |
| - name: Create Release Pull Request or Publish to npm | |
| uses: changesets/action@v1.5.3 | |
| with: | |
| publish: yarn release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |