Skip to content

Merge pull request #161 from guardian/jlk/new-analytics-endpoint #46

Merge pull request #161 from guardian/jlk/new-analytics-endpoint

Merge pull request #161 from guardian/jlk/new-analytics-endpoint #46

Workflow file for this run

name: publish
on:
push:
branches:
- "main"
pull_request:
branches-ignore:
- "gh-pages"
workflow_dispatch:
permissions: write-all
jobs:
release:
name: Release
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup node
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- name: Publish
run: |
npm config set access public
npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }}
npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}