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 25, 2023
1 parent 105704e commit 52f4b14
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 126 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Set up Java for publishing to GitHub Packages
uses: actions/setup-java@v1
uses: actions/setup-java@v3
with:
java-version: 11

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: 3.x
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-voyager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Tag Name
id: tag_name
run: |
Expand Down
52 changes: 33 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Extract Semver
id: semver_parser
Expand Down Expand Up @@ -47,34 +47,20 @@ jobs:
- name: Create Archive
run: zip -r insider.zip insider

- 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: Insider ${{ 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: insider.zip

- name: Setup Node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
cache: 'npm'
registry-url: 'https://npm.pkg.github.com'
scope: '@dxworks'

- name: Prepare Node App
run: |
npm install
npm ci
npm run build
- name: Setup Version
run: |
ls -al node_modules/.bin
Expand All @@ -86,3 +72,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: Insider ${{ 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: insider.zip
Loading

0 comments on commit 52f4b14

Please sign in to comment.