Skip to content

COPS-3404

COPS-3404 #7

Workflow file for this run

name: Auto Build
#on:
# release:
# types: [created]
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Run license
run: npm run license
- name: Generate API References
run: npm run generate-docs
- name: Run Tests
run: npm test
- name: Configure npm for publishing
run: |
echo "@picsart:registry=https://registry.npmjs.org/" >> ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish