Skip to content

Commit

Permalink
fix(release): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nstuyvesant committed Sep 2, 2024
1 parent e1d2122 commit 7198a6d
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 7198a6d

Please sign in to comment.