fix: Fixed an issue where isFolder returns incorrect values for lea…
#295
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: Publish | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| id-token: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| name: Publish | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - uses: actions/cache@v3 | |
| with: | |
| path: | | |
| **/node_modules | |
| ./.yarn/cache | |
| key: ${{ runner.os }}-deps-${{ hashFiles('**/yarn.lock') }} | |
| - uses: volta-cli/[email protected] | |
| with: | |
| registry-url: "https://registry.npmjs.org" | |
| - run: yarn | |
| - run: yarn lint:test | |
| - run: yarn test | |
| - run: yarn build:core | |
| - run: yarn build:web | |
| - name: Copy readme.md to packages | |
| run: | | |
| for dir in $(find packages -type d -maxdepth 1); do | |
| cp readme.md $dir/readme.md | |
| done | |
| - name: Create Release Pull Request or Publish to npm | |
| id: changesets | |
| uses: changesets/action@v1 | |
| with: | |
| version: npx zx ./scripts/version.mjs | |
| publish: yarn changeset publish | |
| commit: "chore: release [nosnapshot]" | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |