chore(update): patch release 21.0.4 馃悰 #7
Workflow file for this run
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: Build & Publish | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Use Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Cache node modules | |
| uses: actions/cache@v5 | |
| env: | |
| cache-name: cache-node-modules | |
| with: | |
| path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS | |
| key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-build-${{ env.cache-name }}- | |
| ${{ runner.os }}-build- | |
| ${{ runner.os }}- | |
| - name: Install dependencies # Install all deps | |
| run: yarn | |
| - name: Sync versions # Sync versions | |
| run: yarn syncprojects | |
| - name: Build demo app # Build Schematics and move | |
| run: yarn build:demo --base-href https://bartholomej.github.io/ngx-translate-cut/ | |
| - name: Build ngx-translate-cut # Build | |
| run: yarn build | |
| - name: Run tests | |
| run: yarn test --watch=false | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| fail_ci_if_error: true | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| - name: Publish NPM | |
| run: cd dist/ngx-translate-cut && npm publish | |
| # Publish to GitHub Package Registry | |
| # - name: Set up package for GPR | |
| # run: yarn gpr:setup | |
| # - name: Use GPR | |
| # uses: actions/setup-node@v5 | |
| # with: | |
| # node-version: 24 | |
| # registry-url: https://npm.pkg.github.com/ | |
| # scope: '@bartholomej' | |
| # - name: Publish to GitHub Package Registry | |
| # run: | | |
| # cd dist/ngx-translate-cut | |
| # npm publish | |
| # env: | |
| # NODE_AUTH_TOKEN: ${{github.token}} | |
| - name: Deploy Github Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
| publish_dir: ./dist/demo/browser |