Skip to content

untagged-99d5a637b063e9a66c9d #3

untagged-99d5a637b063e9a66c9d

untagged-99d5a637b063e9a66c9d #3

Workflow file for this run

name: Node.js Publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15.4-alpine
ports:
- 5432:5432
env:
POSTGRES_HOST_AUTH_METHOD: trust
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Cache Dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Lint
run: npm run lint
- name: Test
run: npm test
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}