diff --git a/.github/workflows/trigger-pipeline-on-release.yml b/.github/workflows/trigger-pipeline-on-release.yml new file mode 100644 index 0000000..a8e3d85 --- /dev/null +++ b/.github/workflows/trigger-pipeline-on-release.yml @@ -0,0 +1,20 @@ +name: Trigger pipeline on Release + +on: + release: + # type of release to trigger the pipeline check https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#release + types: [published] + +jobs: + publish-npm: + runs-on: ubuntu-latest + steps: + - name: Azure Pipelines Action + uses: Azure/pipelines@v1 + with: + # Fullyqualified URL to the Azure DevOps organization along with project name(eg, https://dev.azure.com/organization/project-name or https://server.example.com:8080/tfs/DefaultCollection/project-name) + azure-devops-project-url: https://dev.azure.com/OutSystemsRD/MABS + # Name of the Azure Pipeline to be triggered + azure-pipeline-name: OutSystems.cordova-outsystems-barcode + # Paste personal access token of the user as value of secret variable:AZURE_DEVOPS_TOKEN + azure-devops-token: ${{secrets.AZURE_DEVOPS_TOKEN}} \ No newline at end of file diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..20ac67c --- /dev/null +++ b/.npmrc @@ -0,0 +1,3 @@ +@outsystems:registry=https://pkgs.dev.azure.com/OutSystemsRD/MABS/_packaging/MABSRepository/npm/registry/ + +always-auth=true \ No newline at end of file diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..f7baa60 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,22 @@ +trigger: + - master + +parameters: + - name: isMain + type: object + default: startsWith(variables['Build.SourceBranch'], 'refs/tags/') + +resources: + repositories: + - repository: OutSystems.CICDPlatform.CordovaAzurePipelineTemplates + type: github + ref: refs/heads/master + name: OutSystems/OutSystems.CICDPlatform.CordovaAzurePipelineTemplates + endpoint: OutSystems + +stages: +- template: templates/plugin-pipeline.yml@OutSystems.CICDPlatform.CordovaAzurePipelineTemplates + parameters: + platforms: + - none + canTriggerRelease: ${{ parameters.isMain }} \ No newline at end of file diff --git a/package.json b/package.json index ecc86b7..919bd89 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "com.outsystems.plugins.barcode", - "version": "1.0.0", + "name": "@outsystems/cordova-outsystems-barcode", + "version": "0.0.1", "description": "Cordova Bridge for the OutSystems Officially Supported Barcode Plugin.", "keywords": [ "ecosystem:cordova", diff --git a/plugin.xml b/plugin.xml index de65ab6..8bdcffb 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,5 +1,5 @@ - + OSBarcode Cordova Bridge for the OutSystems Officially Supported Barcode Plugin. OutSystems Inc