Skip to content

Commit

Permalink
ci: merge publish and version
Browse files Browse the repository at this point in the history
  • Loading branch information
EdouardDem committed Nov 20, 2023
1 parent 9e5f377 commit 1e66aa7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 26 deletions.
24 changes: 0 additions & 24 deletions .github/workflows/publish.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Lerna version
name: Lerna version & publish

on:
push:
branches: [ main ]

jobs:
publish:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
Expand All @@ -26,3 +26,20 @@ jobs:
- run: npm run test
- run: npm run build
- run: npm run lerna version
publish:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, 'chore(release): bump version')"
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org/'
- run: npm ci
- run: npm run build
- run: npm run lerna publish from-package
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 1e66aa7

Please sign in to comment.