Skip to content

Commit

Permalink
fix: adds semantic release configs again
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Belyaev authored and Igor Belyaev committed Jan 15, 2021
1 parent c8e4489 commit 01231a3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create new library packages
on:
push:
branches:
- test-test
- master

jobs:
build:
Expand All @@ -14,7 +14,7 @@ jobs:
fail-fast: false

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- name: Build app
run: yarn && yarn build

Expand All @@ -26,13 +26,11 @@ jobs:
- name: Publish root package
run: |
yarn semantic-release
sh ${{ github.workspace }}/bin/publish-root-package.sh
env:
GITHUB_TOKEN: ${{ secrets.PERMISSION_GITHUB_TOKEN }}

- name: Publish separate packages
run: |
yarn semantic-release-lerna
yarn lerna publish from-package --yes
env:
GITHUB_TOKEN: ${{ secrets.PERMISSION_GITHUB_TOKEN }}
9 changes: 0 additions & 9 deletions bin/publish-root-package.sh

This file was deleted.

10 changes: 10 additions & 0 deletions packages/release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
plugins: [
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
['@semantic-release/npm', { pkgRoot: './' }],
],
branches: ['master'],
repositoryUrl: 'https://github.com/alfa-laboratory/core-components',
};
4 changes: 4 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ module.exports = {
'@semantic-release/commit-analyzer',
'@semantic-release/release-notes-generator',
'@semantic-release/changelog',
[
'@semantic-release/npm',
{ pkgRoot: './dist' },
],
[
'@semantic-release/npm',
{ npmPublish: false },
Expand Down

0 comments on commit 01231a3

Please sign in to comment.