Skip to content

Commit

Permalink
ci: add publish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Sep 1, 2023
1 parent 1b6e520 commit d7a998e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish

on:
release:
types: [created]

jobs:

npm_release:
name: NPM Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: Lerna version
run: |
git tag -d ${{ github.event.release.tag_name }}
git push origin :refs/tags/${{ github.event.release.tag_name }}
lerna version ${{github.event.release.tag_name}} --yes
lerna publish from-git --yes

0 comments on commit d7a998e

Please sign in to comment.