feat: esm first (support cjs by exports field of package.json) (#97) #39
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 PR or Publish | |
on: | |
push: | |
branches: [main, beta] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
- name: Install Dependencies | |
run: yarn install | |
- name: Build Package | |
run: yarn workspace overlay-kit run build | |
- name: Create Changesets Pull Request or Publish to NPM | |
uses: changesets/action@v1 | |
with: | |
title: 'chore: version packages' | |
commit: 'chore: version packages' | |
version: yarn changeset:version | |
publish: yarn changeset:publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |