Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/vimaec/vim-web
Browse files Browse the repository at this point in the history
  • Loading branch information
vim-sroberge committed Dec 10, 2024
2 parents 695c304 + e087d03 commit a8efc25
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Manually publish to npm

on:
workflow_dispatch: # Enables manual triggering
inputs:
package_version:
description: 'Package Version'
required: true

jobs:
build:
Expand All @@ -10,6 +14,15 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Debug changed files
run: |
echo "Changed files:"
git status --short
git diff --name-only
- name: Debug package.json contents
run: cat package.json

- name: Setup Node
uses: actions/setup-node@v2
with:
Expand All @@ -19,9 +32,30 @@ jobs:
- name: Install dependencies
run: npm install

- name: Debug changed files
run: |
echo "Changed files:"
git status --short
git diff --name-only
- name: Build Libs
run: npm run build:libs

- name: Debug changed files
run: |
echo "Changed files:"
git status --short
git diff --name-only
- name: Debug changed files
run: |
echo "Changed files:"
git status --short
git diff --name-only
- name: Publish package on NPM 📦
run: npm version ${{ github.event.inputs.package_version }}

- name: Publish package on NPM 📦
run: npm publish
env:
Expand Down

0 comments on commit a8efc25

Please sign in to comment.