Skip to content

🔖 Release version 0.7.0 #239

🔖 Release version 0.7.0

🔖 Release version 0.7.0 #239

Workflow file for this run

name: CI/CD
on: [push]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install packages
run: npm ci
- name: Run Tests
run: npm run test
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
- name: Install packages
run: npm ci
- name: Run Linter
run: npm run lint
build:
name: Build and Publish
runs-on: ubuntu-latest
needs: [test, lint]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
scope: '@kamiapp'
- run: npm ci
- run: npm run build --workspaces
- run: npm publish --workspaces --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
pages:
name: Github Pages
runs-on: ubuntu-latest
needs: [build]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16.x'
- run: npm ci
- run: npm run build
- name: Deploy
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: dist
release:
name: Github Release
runs-on: ubuntu-latest
needs: [build]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm install -g @geut/chan
- run: echo "NPM_VERSION=`echo $(node -p "require('./package.json').version")`" >> $GITHUB_ENV
- run: chan gh-release ${{ env.NPM_VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}