зеркало из https://github.com/microsoft/p-graph.git
36 строки
977 B
YAML
36 строки
977 B
YAML
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
|
|
name: Release
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [12.x]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
token: ${{ secrets.repo_pat }}
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- run: yarn
|
|
- run: yarn build
|
|
- run: yarn test
|
|
- run: |
|
|
git config user.email "kchau@microsoft.com"
|
|
git config user.name "Ken Chau"
|
|
- run: yarn release -y -n $NPM_AUTHTOKEN
|
|
env:
|
|
NPM_AUTHTOKEN: ${{ secrets.npm_authtoken }}
|