Skip to content

feat: replace example to example folder project #42

feat: replace example to example folder project

feat: replace example to example folder project #42

Workflow file for this run

name: Node.js CI
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install npm dependencies
run: npm ci
- name: Build and Test
run: npm run build
- name: Set up npm
run: npm config set //npm.pkg.github.com/:_authToken ${{ secrets.NPM_TOKEN }}
publish:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
needs: quality
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Install npm dependencies
run: npm ci
- name: Publish Package
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}