Skip to content

Commit

Permalink
change(npm): without global install, add package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Sep 6, 2024
1 parent 08467b8 commit 4a2303e
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 11 deletions.
15 changes: 4 additions & 11 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
ref: change/composite-action

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
Expand All @@ -37,20 +37,13 @@ runs:
shell: bash

- name: Install Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm/_cacache
key: node-${{ hashFiles('package-lock.json') }}
restore-keys: |
node-
cache: 'npm'

- name: Install markdown2confluence
run: npm install -g @shogobg/[email protected]
run: npm install @shogobg/[email protected]
shell: bash

- name: Run sync_to_jira.py
Expand Down
38 changes: 38 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"dependencies": {
"@shogobg/markdown2confluence": "^0.1.6"
}
}

0 comments on commit 4a2303e

Please sign in to comment.