Skip to content

Commit

Permalink
Deploying to npm.pkg.github.com, take 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mojir committed Jan 14, 2025
1 parent b6bdfbf commit 8e6b8b6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflow/publish.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish Package to GitHub Packages
on:
push:
branches:
- master
# push:
# branches:
# - master
workflow_dispatch:

jobs:
Expand All @@ -18,11 +18,13 @@ jobs:
registry-url: 'https://npm.pkg.github.com'
scope: '@${{ github.repository_owner }}'

- name: Bump version
- name: Configure Git
run: |
git config --global user.email "[email protected]"
git config --global user.name "github-actions"
npm version patch
- name: Bump version
run: npm version patch

- name: Install dependencies
run: npm ci
Expand All @@ -47,4 +49,4 @@ jobs:
git commit -m 'ci: bump version'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8e6b8b6

Please sign in to comment.