Skip to content

FIX: stop publishing twice #67

FIX: stop publishing twice

FIX: stop publishing twice #67

name: Web Vitals CD - Publish Packages
on:
push:
branches:
- latest
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
env:
CI: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
scope: '@bbc'
- name: Install Node Modules
run: ./scripts/installNodeModules.sh
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}