Fix font paths in built worker for deployed environments #2
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 | |
| 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" | |
| - 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 }} | |
| - name: Commit version bump | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add packages/cascade-core/package.json | |
| git commit -m "cascade-core v${{ steps.bump.outputs.version }} [skip ci]" | |
| git push |