From 4a2303e716e45d8dfeecafdff9ea9cdfa75357aa Mon Sep 17 00:00:00 2001 From: Tomas Sebestik Date: Fri, 6 Sep 2024 10:09:56 +0200 Subject: [PATCH] change(npm): without global install, add package-lock.json --- action.yml | 15 ++++----------- package-lock.json | 38 ++++++++++++++++++++++++++++++++++++++ package.json | 5 +++++ 3 files changed, 47 insertions(+), 11 deletions(-) create mode 100644 package-lock.json create mode 100644 package.json diff --git a/action.yml b/action.yml index 392b392..c9802eb 100644 --- a/action.yml +++ b/action.yml @@ -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' @@ -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/markdown2confluence@0.1.6 + run: npm install @shogobg/markdown2confluence@0.1.6 shell: bash - name: Run sync_to_jira.py diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..c521c73 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,38 @@ +{ + "name": "sync-jira-actions", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "sync-jira-actions", + "dependencies": { + "@shogobg/markdown2confluence": "^0.1.6" + } + }, + "node_modules/@shogobg/markdown2confluence": { + "version": "0.1.10", + "resolved": "https://registry.npmjs.org/@shogobg/markdown2confluence/-/markdown2confluence-0.1.10.tgz", + "integrity": "sha512-GX+lMqAtLlVcg6hUZPl80fs0Ok2cG+1VzRz2HRCV6mz5rngnLXqrBcIZYKn7ghitqm5NJTh691YNLWiCg2hUVg==", + "dependencies": { + "marked": "^4.0.18" + }, + "bin": { + "markdown2confluence": "bin/markdown2confluence.js" + }, + "engines": { + "node": ">= 14.0.0" + } + }, + "node_modules/marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 12" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..65243ce --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "@shogobg/markdown2confluence": "^0.1.6" + } +}