Skip to content

Commit

Permalink
on going
Browse files Browse the repository at this point in the history
  • Loading branch information
OS-ricardomoreirasilva committed Jan 11, 2024
1 parent cd255cc commit 9285c30
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/trigger-pipeline-on-release.yml
Original file line number Diff line number Diff line change
@@ -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}}
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@outsystems:registry=https://pkgs.dev.azure.com/OutSystemsRD/MABS/_packaging/MABSRepository/npm/registry/

always-auth=true
22 changes: 22 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.outsystems.plugins.barcode",
"version": "1.0.0",
"version": "0.0.1",
"description": "Cordova Bridge for the OutSystems Officially Supported Barcode Plugin.",
"keywords": [
"ecosystem:cordova",
Expand Down
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<plugin id="com.outsystems.plugins.barcode" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<plugin id="com.outsystems.plugins.barcode" version="0.0.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>OSBarcode</name>
<description>Cordova Bridge for the OutSystems Officially Supported Barcode Plugin.</description>
<author>OutSystems Inc</author>
Expand Down

0 comments on commit 9285c30

Please sign in to comment.