Skip to content

Commit

Permalink
ci(release): add semantic-release cd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Oct 16, 2024
1 parent 981d407 commit 1e32e78
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ jobs:

- run: pnpm install

- name: Version and publish
run: |
- run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
if [ -n "${{ inputs.custom_version }}" ]; then
yarn lerna version ${{ inputs.custom_version }} --y --force-publish
Expand Down
23 changes: 23 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish on NPM

on:
push:
branches:
- feat/vitest

jobs:
publish-to-npm:
name: Publish to NPM
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: pnpm

- run: pnpm install

- run: pnpm -r exec semantic-release --dry-run

0 comments on commit 1e32e78

Please sign in to comment.