Skip to content

Commit

Permalink
ci: auth cd and ci steps, improved descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftwork committed Dec 11, 2019
1 parent 630d134 commit 42211eb
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 36 deletions.
52 changes: 32 additions & 20 deletions .github/workflows/cd.yml
Expand Up @@ -3,28 +3,40 @@ name: Continuous Delivery
on:
push:
branches:
- master
- release/*
- master
- release/*

jobs:
release:

delivery:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install, test, version, build, publish packages and docs
run: |
npm ci
npm test
npm run version
npm run build
lerna publish from-git --yes
npm run docs:deploy
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
CI: true
- name: Checking out source code
uses: actions/checkout@v1

- name: Setting up Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x

- name: Install dependencies as CI
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run tests on packages
run: npm test

- name: Bump package versions
run: npm run version

- name: Build packages
run: npm run build

- name: Publish public packages
run: lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy documentation package to GitHub Pages
run: npm run docs:deploy
39 changes: 23 additions & 16 deletions .github/workflows/ci.yml
Expand Up @@ -3,28 +3,35 @@ name: Continuous Integration
on:
pull_request:
branches:
- master
- master

jobs:
build:

integration:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 10.x, 12.x]

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install, test, and build
run: |
npm ci
npm test
npm run build
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
CI: true
- name: Checking out source code
uses: actions/checkout@v1

- name: Setting up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies as CI
run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run tests on packages
run: npm test

- name: Bump package versions
run: npm run version

- name: Build packages
run: npm run build

0 comments on commit 42211eb

Please sign in to comment.