Add OffsetWire, MakeFace functions; fix Monaco cursor CSS bug #5
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 cascade-core to npm | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'packages/cascade-core/**' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| with: | |
| lfs: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install Dependencies | |
| run: npm ci | |
| - name: Bump patch version and commit | |
| id: bump | |
| working-directory: packages/cascade-core | |
| run: | | |
| OLD_VERSION=$(node -p "require('./package.json').version") | |
| npm version patch --no-git-tag-version | |
| NEW_VERSION=$(node -p "require('./package.json').version") | |
| echo "version=$NEW_VERSION" >> "$GITHUB_OUTPUT" | |
| echo "Bumped $OLD_VERSION → $NEW_VERSION" | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add package.json | |
| git commit -m "cascade-core v${{ steps.bump.outputs.version }} [skip ci]" | |
| git push | |
| - name: Build cascade-core | |
| run: node packages/cascade-core/scripts/build.cjs | |
| - name: Publish to npm | |
| working-directory: packages/cascade-core | |
| run: npm publish --access public | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |