Skip to content

Pre-release v1.0.0-alpha.3 #4

Pre-release v1.0.0-alpha.3

Pre-release v1.0.0-alpha.3 #4

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
publish:
if: contains('["knightedcodemonkey"]', github.actor)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.5.2
- name: Setup Node
uses: actions/setup-node@v3.6.0
with:
node-version: '20.5.0'
- name: Install Dependencies
run: npm ci
- name: Save error log
uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: npm-debug-log-${{ hashFiles('package-lock.json') }}
path: npm-debug.log
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Pack
run: npm pack
- name: Push to NPM registry
uses: JS-DevTools/npm-publish@v2.1.0
with:
token: ${{ secrets.NPM_AUTH_TOKEN }}
access: public