Skip to content

v0.1.0-alpha.6

v0.1.0-alpha.6 #67

Workflow file for this run

name: Pull Request Checks
on:
workflow_dispatch:
push:
branches:
- main
tags:
- "v*.*.*"
pull_request:
branches:
- main
release:
types: [published]
jobs:
prettier:
runs-on: ubuntu-latest
name: Check for Linting Errors
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
- name: NPM Install
run: npm install --only-dev
shell: bash
- name: Check for Prettier Issues
run: npm run prettier
build:
runs-on: ubuntu-latest
name: Check Building
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 18
- name: NPM Install
run: npm install
shell: bash
- name: Build
run: npm run build
shell: bash
publish:
needs: [prettier, build]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
name: NPM Publish
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: NPM Install
run: npm install
shell: bash
- name: Build
run: npm run build
- name: Setup NPM CI
run: npm ci
- name: Publish Package
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}