diff --git a/.github/workflows/setTag.yml b/.github/workflows/setTag.yml index 45c7230fb..5e1c319e3 100644 --- a/.github/workflows/setTag.yml +++ b/.github/workflows/setTag.yml @@ -23,8 +23,20 @@ jobs: set-tag: runs-on: ubuntu-latest steps: +# - uses: actions/setup-node@v4 +# with: +# node-version: 18 +# - run: npm dist-tag list iobroker.webui +# - run: npm --//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}} dist-tag add iobroker.${{ github.event.inputs.adapter }}@${{ github.event.inputs.release }} ${{ github.event.inputs.tag }} + - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 18 - - run: npm dist-tag list iobroker.webui - - run: npm --//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}} dist-tag add iobroker.${{ github.event.inputs.adapter }}@${{ github.event.inputs.release }} ${{ github.event.inputs.tag }} + - run: npm i + - run: npm run setTag + env: + OWN_GITHUB_TOKEN: ${{ secrets.OWN_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + INPUT_ADAPTER: ${{ github.event.inputs.adapter }} + INPUT_RELEASE: ${{ github.event.inputs.release }} + INPUT_TAG: ${{ github.event.inputs.tag }} diff --git a/lib/setTag.js b/lib/setTag.js index 96eddf16c..d6a199644 100644 --- a/lib/setTag.js +++ b/lib/setTag.js @@ -38,10 +38,10 @@ async function doIt() { const cmd = `npm --//registry.npmjs.org/:_authToken=${process.env.NPM_TOKEN} dist-tag add iobroker.${process.env.INPUT_ADAPTER}@${targetRelease} ${process.env.INPUT_TAG}`; try { const result=execSync( cmd, { encoding: 'utf-8' }); -// console.log(result); -// } catch (_e) { -// // console.log (JSON.stringify(e)); -// } + console.log(result); + } catch (_e) { + // console.log (JSON.stringify(e)); + } } return 'done';