Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

fix: try release on PR merged #164

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release
on:
push:
pull_request:
types: [closed]
branches:
- main

Expand All @@ -9,7 +10,8 @@ concurrency:
cancel-in-progress: true

jobs:
test:
publish:
if: github.event.pull_request.merged == true
strategy:
fail-fast: true
name: publish
Expand All @@ -21,11 +23,12 @@ jobs:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run build:stencil-react-ssr-output-target
- name: Configure Git User for Release
run: |
git config --global user.name "smartive CI"
git config --global user.email "[email protected]"
- run: npm run publish:stencil-react-ssr-output-target
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git config --global user.name "smartive CI"
git config --global user.email "[email protected]"
npx lerna version --conventional-commits --conventional-graduate --yes
npx lerna publish from-git --yes
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
"build:cdn-build": "lerna run build --skip-nx-cache --scope=abc-cdn-build",
"build:docs": "lerna run build --skip-nx-cache --scope=abc-docs",
"build:app": "lerna run build --skip-nx-cache --scope=abc-app",
"start:app": "lerna run start --skip-nx-cache --scope=abc-app",
"publish:stencil-react-ssr-output-target": "lerna version --conventional-commits --conventional-graduate=* --yes && lerna publish --yes"
"start:app": "lerna run start --skip-nx-cache --scope=abc-app"
},
"engines": {
"node": "^20.0.0",
Expand Down
Loading