Skip to content

Commit

Permalink
ci: manually publish the package
Browse files Browse the repository at this point in the history
  • Loading branch information
rabi-siddique committed Nov 18, 2024
1 parent f2bee47 commit 9eef212
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
name: Release Package

on:
push:
branches:
- master
workflow_dispatch:
inputs:
version:
description: 'release: major|minor|patch'
required: true
default: 'patch'

jobs:
release:
Expand All @@ -24,7 +27,6 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
cat ~/.npmrc | sed 's/:_authToken=.*/:_authToken=[SECURED]/'
- name: Install pnpm
run: npm install -g pnpm
Expand All @@ -36,11 +38,9 @@ jobs:
run: |
git config --global user.name "${{ secrets.GIT_USER }}"
git config --global user.email "${{ secrets.GIT_EMAIL }}"
echo "Configured Git user.name: $(git config --global user.name)"
echo "Configured Git user.email: $(git config --global user.email)"
- name: Release with release-it
run: npx --ignore-existing release-it
run: npx release-it --increment ${{ github.event.inputs.version }}
env:
GIT_AUTHOR_NAME: ${{ secrets.GIT_USER }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_EMAIL }}
Expand Down

0 comments on commit 9eef212

Please sign in to comment.