diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index beebbf6..238b4e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,25 +39,10 @@ jobs: env: TAG: ${{ github.ref }} - - name: Prepare Release Notes - run: touch ${{ github.workspace }}/releaseNotes/v${{ steps.semver_parser.outputs.semver }}.md - - - name: Create Release - id: create_release - uses: softprops/action-gh-release@v1 - with: - name: Depminer ${{ steps.semver_parser.outputs.semver }} - body_path: ${{ github.workspace }}/releaseNotes/v${{ steps.semver_parser.outputs.semver }}.md - body: "" - prerelease: false - draft: false - fail_on_unmatched_files: true - files: depminer.zip - - name: Setup Node uses: actions/setup-node@v2 with: - node-version: '16.x' + node-version: '18.x' cache: 'npm' registry-url: 'https://npm.pkg.github.com' scope: '@dxworks' @@ -76,3 +61,31 @@ jobs: run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Setup Node with NPM Package Registry + uses: actions/setup-node@v3 + with: + node-version: '18.x' + cache: 'npm' + registry-url: 'https://registry.npmjs.org' + scope: '@dxworks' + + - name: Publish on NPM + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Prepare Release Notes + run: touch ${{ github.workspace }}/releaseNotes/v${{ steps.semver_parser.outputs.semver }}.md + + - name: Create Release + id: create_release + uses: softprops/action-gh-release@v1 + with: + name: Depminer ${{ steps.semver_parser.outputs.semver }} + body_path: ${{ github.workspace }}/releaseNotes/v${{ steps.semver_parser.outputs.semver }}.md + body: "" + prerelease: false + draft: false + fail_on_unmatched_files: true + files: depminer.zip \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index aff4177..e2a44a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "license": "Apache-2.0", "dependencies": { - "commander": "^8.3.0", + "commander": "^11.1.0", "java-caller": "^2.4.0" }, "bin": { @@ -145,11 +145,11 @@ } }, "node_modules/commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==", + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", + "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", "engines": { - "node": ">= 12" + "node": ">=16" } }, "node_modules/concat-map": { @@ -888,9 +888,9 @@ "integrity": "sha512-T6PB6vdFrwnHXg/I0kivM3DqaCGZLjjYSOe0a5WgFKcz1sOnmOeIjnhQPXVXX3QjVbLyTJ85lJkX6lUpukTzaA==" }, "commander": { - "version": "8.3.0", - "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz", - "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==" + "version": "11.1.0", + "resolved": "https://registry.npmjs.org/commander/-/commander-11.1.0.tgz", + "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==" }, "concat-map": { "version": "0.0.1", diff --git a/package.json b/package.json index 0403930..8545582 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "local": "npm run build && npm i" }, "dependencies": { - "commander": "^8.3.0", + "commander": "^11.1.0", "java-caller": "^2.4.0" }, "devDependencies": {