feat: upgrade to Angular 20 #577
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: Deploy | |
| on: | |
| # Runs on pushes targeting release branches | |
| push: | |
| branches: ["master", "next", "v3", "v9", "v10"] | |
| # Allows us to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: read # for checkout | |
| jobs: | |
| # Single deploy job since we're just deploying | |
| publish: | |
| environment: | |
| name: Deploy | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # to be able to publish a GitHub release | |
| issues: write # to be able to comment on released issues | |
| pull-requests: write # to be able to comment on pull requests | |
| id-token: write # to enable use of OIDC for npm provenance | |
| steps: | |
| # Checkout to branch | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| # Node 22.14+ required by semantic-release v25 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.x" | |
| cache: "npm" | |
| cache-dependency-path: "package-lock.json" | |
| - name: Install packages | |
| run: npm i | |
| # Build CCA package | |
| - name: Build package | |
| run: npm run build | |
| # Run Semantic release to publish package to NPM | |
| - name: Publish package | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.CARBON_BOT_NPM_TOKEN }} | |
| run: npm run semantic-release | |
| # Push storybook build to gh-pages branch if pushed to `master` branch | |
| - name: Serve storybook | |
| if: github.ref_name == 'master' | |
| env: | |
| GH_TOKEN: ${{ secrets.CARBON_BOT_DCO }} | |
| run: ./scripts/deploy.sh | |
| shell: bash |