Skip to content

Run pipeline on PR to main #23

Run pipeline on PR to main

Run pipeline on PR to main #23

Workflow file for this run

name: Pipeline
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: |
npm install
- name: Test
run: |
npm run test
- name: Build
run: |
npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}