Skip to content

Commit

Permalink
Fixed dxw plugin dependencies and added deploy to NPM registry
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRivis committed Oct 23, 2023
1 parent ab113af commit 7843292
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 25 deletions.
45 changes: 29 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
16 changes: 8 additions & 8 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 7843292

Please sign in to comment.