-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e1d2122
commit 7198a6d
Showing
1 changed file
with
13 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,32 +4,34 @@ on: | |
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
if: github.actor != 'carbon-bot' && !startsWith(github.event.head_commit.message, 'skip-release') | ||
name: Create release - Node.js v20.17.0 | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.GH_TOKEN }} | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "carbon-bot" | ||
- name: Use Node.js 20.17.0 | ||
- name: Use Node.js 20.x LTS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.17.0' | ||
node-version: '20.x' | ||
cache: 'yarn' | ||
registry-url: 'https://registry.npmjs.org/' | ||
always-auth: true | ||
auth-token: ${{ secrets.NPM_TOKEN }} | ||
|
||
- 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: Generate search index for docs website | ||
run: lerna run build:search --scope @carbon/charts-docs # should be committed in next step | ||
|
||
|
@@ -38,17 +40,13 @@ jobs: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
run: npx lerna version --yes --force-publish --conventional-commits --create-release github | ||
|
||
- name: | ||
Rebuild packages and documentation, write new version to | ||
packages/angular/dist/package.json 🔧 | ||
- name: Build latest version's packages (including angular/dist) 🔧 | ||
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 | ||
run: npx lerna publish from-git --yes --force-publish | ||
|
||
- name: Deploy documentation to Github Pages 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
|