Skip to content

markdown-confluence-sync - Publish to NPM #46

markdown-confluence-sync - Publish to NPM

markdown-confluence-sync - Publish to NPM #46

Workflow file for this run

# SPDX-FileCopyrightText: 2024 Telefónica Innovación Digital
# SPDX-License-Identifier: MIT
name: Publish to NPM
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/install
- run: pnpm nx run-many -t check:all --all
- name: Publish to NPM
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
echo "@telefonica:registry=https://registry.npmjs.org/" >> ~/.npmrc
pnpm -r publish --no-git-checks