Skip to content

properly running jest in pipeline #40

properly running jest in pipeline

properly running jest in pipeline #40

Workflow file for this run

name: CI
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Restore
run: npm install
- name: Run Jest
run: npx jest
- name: Install rollup
run: npm install -g rollup
- name: Bundle
run: rollup ./bound-element/main.js --file bundle.js --format cjs
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}