Skip to content

Fix access for scoped package (#1) #9

Fix access for scoped package (#1)

Fix access for scoped package (#1) #9

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
release:
types: [ published ]
jobs:
build:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN || '' }}
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- name: Install npm
run: npm install -g npm@8
- name: Install Dependencies
run: npm ci
- name: Build
run: npm run dist
- name: Run Tests
run: xvfb-run --auto-servernum npm run test
- name: Publish Latest Release
if: github.event_name == 'release' && env.NODE_AUTH_TOKEN != ''
run: npm run publish-ci