chore(release): publish 1.15.6 #732
Workflow file for this run
This file contains 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: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
if: github.actor != 'carbon-bot' && !startsWith(github.event.head_commit.message, 'skip-release') | |
name: Create release - Node.js v18.19.1 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Use Node.js 18.19.1 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.19.1' | |
- name: Install dependencies 🔧 | |
run: yarn install --immutable --check-cache | |
- name: Set git user and get git into the right state | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "carbon-bot" | |
git checkout master | |
- name: Create version and change logs | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: npx lerna version --yes --force-publish --conventional-commits --create-release github | |
- name: Rebuild packages and demos for publication and deployment 🔧 | |
run: | | |
yarn build | |
node scripts/update-angular-dependency-version.mjs | |
- name: Publish to npmjs registry and Github | |
run: | | |
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} -q | |
npx lerna publish from-git --yes --force-publish | |
- name: Deploy demos and documentation to Github Pages 🚀 | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
branch: gh-pages # The branch the action should deploy to. | |
folder: pages # The folder the action should deploy. | |
clean: true # Automatically remove deleted files from the deploy branch |