Skip to content

NPM Package

NPM Package #95

Workflow file for this run

name: NPM Package
on:
push:
branches:
- 'mainnnn'
workflow_dispatch:
jobs:
validate-commits:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Validate commits
uses: webiny/action-conventional-commits@v1.1.0
test-build-publish:
needs: [validate-commits]
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
issues: read
pull-requests: read
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
registry-url: 'https://npm.pkg.github.com'
scope: '@bepower'
- name: Install dependencies
run: npm ci
- name: Testing
run: npm test --workspaces
- name: Building typescript in packages
run: npm run build --workspaces --if-present
- name: Linting
run: npm run check
- name: Publish
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}