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 29892b3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: Release Package

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

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
release:
Expand All @@ -24,7 +31,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 +42,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 29892b3

Please sign in to comment.