Skip to content

Commit

Permalink
chore(integration): fix next version publication
Browse files Browse the repository at this point in the history
  • Loading branch information
mgermerie committed Feb 8, 2023
1 parent 7f86d26 commit fdb4813
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/integration.yml
Expand Up @@ -85,6 +85,9 @@ jobs:
steps:

- uses: actions/checkout@v2
with:
# fetch all branches
fetch-depth: 0

# Configure git user for later command induced commits
- uses: fregante/setup-git-user@v1
Expand All @@ -103,8 +106,21 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: publish itowns@next npm package (following a release)
if: ${{ startsWith(github.event.head_commit.message, 'release v' ) }}
run: |
git checkout next
git reset --hard master
npm run publish-next
git push -f
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: publish itowns@next npm package
if: ${{ !startsWith(github.event.head_commit.message, 'release v' ) }}
run: |
git checkout next
git merge master
npm run publish-next
git push
env:
Expand Down
4 changes: 0 additions & 4 deletions config/conventionalChangelog/config.js
Expand Up @@ -49,10 +49,6 @@ var writerOpts = {
discard = false;
});

if (commit.header && commit.header.includes('-next.')) {
return;
}

if (['feat', 'features', 'feature'].includes(commit.type)) {
commit.type = 'Features';
} else if (commit.type === 'fix') {
Expand Down

0 comments on commit fdb4813

Please sign in to comment.