This repository has been archived by the owner on Oct 28, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use semantic-release instead of lerna
- Loading branch information
Dominique Wirz
committed
Feb 19, 2024
1 parent
f2cbb16
commit d83a17b
Showing
8 changed files
with
2,712 additions
and
6,391 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 |
---|---|---|
@@ -1,34 +1,35 @@ | ||
name: Release | ||
name: Release npm package @smartive/stencil-react-ssr-output-target | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
push: | ||
branches: | ||
- main | ||
- next | ||
|
||
concurrency: | ||
group: release-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
if: github.event.pull_request.merged == true | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
name: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
- run: npm ci | ||
- run: npm run build:stencil-react-ssr-output-target | ||
- name: Release | ||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v4 | ||
with: | ||
dry_run: true | ||
working_directory: ./packages/stencil-react-ssr-output-target | ||
extra_plugins: | | ||
@semantic-release/changelog@6 | ||
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 |
Oops, something went wrong.