forked from microsoft/fast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adding cd publish.yml for manual trigger with ADO (microsoft#4525
) * chore: add cd-publish.yml for ADO manual trigger * add manual trigger: workflow_dispatch * update .npmrc file
- Loading branch information
1 parent
2e272a6
commit 158978d
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
registry=https://registry.npmjs.org/ | ||
package-lock=false | ||
|