Skip to content

Commit

Permalink
Using same publish action as mynth-logger
Browse files Browse the repository at this point in the history
  • Loading branch information
SynthLuvr committed May 6, 2024
1 parent ced94fc commit 5247c75
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ on:
workflow_dispatch:
inputs:
versionType:
description: "Version type (minor or patch)"
description: "Version type (patch or minor)"
required: true
type: choice
options:
- minor
- patch
- minor

jobs:
public:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20
node-version: 18
check-latest: true

- name: Update npm
Expand All @@ -39,7 +39,6 @@ jobs:
git config --global user.email "dev@mynth.ai"
git config --global user.name "Mynth Publisher"
npm version ${{ github.event.inputs.versionType }} -m "chore(release): bump to %s version"
git push --follow-tags
- name: Build
run: npm run build
Expand All @@ -48,3 +47,6 @@ jobs:
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Push to git repo
run: git push --follow-tags

0 comments on commit 5247c75

Please sign in to comment.