Skip to content

Commit

Permalink
chore: adding cd publish.yml for manual trigger with ADO (microsoft#4525
Browse files Browse the repository at this point in the history
)

* chore: add cd-publish.yml for ADO manual trigger

* add manual trigger: workflow_dispatch

* update .npmrc file
  • Loading branch information
Ibrahimmaga authored Apr 1, 2021
1 parent 2e272a6 commit 158978d
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/cd-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI - FAST Manual Publish

on:
workflow_dispatch:

jobs:
build_linux:
runs-on: ubuntu-latest

env:
NPM_PAT: ${{ secrets.NPM_PAT}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_SERVICE_PAT: ${{ secrets.GH_PAT }}
GITHUB_SERVICE_USER: "Microsoft FAST Builds"
GITHUB_SERVICE_EMAIL: "fastdna@service.microsoft.com"

steps:
- uses: actions/checkout@v2

- name: Add or Update packages
run: sudo yarn global add lerna

- name: Authenticate Git for Pushes
run: |
git config --global user.name "${{ env.GITHUB_SERVICE_USER }}"
git config --global user.email "${{ env.GITHUB_SERVICE_EMAIL }}"
- name: Install package dependencies / prepare workspaces
run: yarn install --frozen-lockfile

- name: Testing Prettier format
run: lerna run prettier:diff

- name: Testing unit tests
run: lerna run test --stream

- name: Publish NPM changed packages
run: |
yarn publish-ci -y -n $NPM_PAT
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
registry=https://registry.npmjs.org/
package-lock=false

0 comments on commit 158978d

Please sign in to comment.