Skip to content

Commit

Permalink
Update data mapper vsix nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
hartra344 committed Sep 1, 2022
1 parent 7dae97b commit 2e42c32
Show file tree
Hide file tree
Showing 6 changed files with 87 additions and 2 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/vsix-nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Test Runner

on:
repository_dispatch:
types: [vsix]

jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: 'Checkout Github Action'
uses: actions/checkout@master
with:
token: ${{ secrets.AUTOMATION_PAT }}

- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 16

- run: npm ci

- name: 'Version Bump'
run: git config --global user.email $GITHUB_ACTOR && git config --global user.name release-automation-${GITHUB_ACTOR}@microsoft.com && npm run bump && npm install

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.AUTOMATION_PAT }}
branch: ${{ github.ref }}

build:
runs-on: ubuntu-latest
needs: bump-version
strategy:
matrix:
node-version: [16.x]

steps:
# checkout the repo
- name: 'Checkout Github Action'
uses: actions/checkout@master

- name: Set up Node.js version 16
uses: actions/setup-node@v1
with:
node-version: 16

- run: npm ci
- run: npx nx build vs-code-data-mapper
- run: npm run vscode:data-mapper:pack

- name: Archive VSIX
uses: actions/upload-artifact@v3
with:
#name: data_mapper.vsix
path: |
dist/apps/vs-code-data-mapper/*.vsix
File renamed without changes.
6 changes: 5 additions & 1 deletion apps/vs-code-data-mapper/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"outputPath": "dist/apps/vs-code-data-mapper",
"main": "apps/vs-code-data-mapper/src/main.ts",
"tsConfig": "apps/vs-code-data-mapper/tsconfig.app.json",
"assets": ["apps/vs-code-data-mapper/src/assets", "apps/vs-code-data-mapper/src/package.json"],
"assets": [
"apps/vs-code-data-mapper/src/assets",
"apps/vs-code-data-mapper/src/package.json",
"apps/vs-code-data-mapper/src/LICENSE.md"
],
"externalDependencies": ["vscode", "commonjs"]
},
"configurations": {
Expand Down
21 changes: 21 additions & 0 deletions apps/vs-code-data-mapper/src/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) Microsoft Corporation.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE
1 change: 1 addition & 0 deletions apps/vs-code-data-mapper/src/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "microsoft-data-mapper-vscode-extension",
"version": "0.0.72",
"main": "main.js",
"repository": "https://github.com/Azure/logic_apps_designer",
"engines": {
"vscode": "^1.64.0"
},
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"build:parsers": "nx run parsers:build",
"build:utils": "nx run utils:build",
"bump": "standard-version --no-verify",
"vscode:pack": "cd ./dist/apps/vs-code-designer && npm install && vsce package",
"vscode:designer:pack": "cd ./dist/apps/vs-code-designer && npm install && vsce package",
"vscode:data-mapper:pack": "cd ./dist/apps/vs-code-data-mapper && npm install && vsce package",
"fixLineEndings": "prettier --write \"**/*.json\""
},
"engines": {
Expand Down

0 comments on commit 2e42c32

Please sign in to comment.