Skip to content

publish-npm-manually #1

publish-npm-manually

publish-npm-manually #1

Workflow file for this run

name: publish-npm-manually
env:
NODEJS_VERSION: v18.18.2
on:
workflow_dispatch:
inputs:
tag-pub:
type: string
description: Tag to publish
required: true
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-and-publish-packages:
runs-on: ubuntu-22.04
permissions:
id-token: write
steps:
- uses: actions/checkout@v4.1.7
with:
ref: ${{ inputs.tag-pub }}
- run: git fetch --unshallow --prune
- uses: actions/setup-node@v4.0.3
with:
always-auth: true
node-version: ${{ env.NODEJS_VERSION }}
registry-url: 'https://registry.npmjs.org'
- name: lerna-publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_TEST }}
NPM_CONFIG_PROVENANCE: true
run: |
git config --global user.email "alb"
git config --global user.name "alb"
npm whoami
yarn lerna publish from-git --yes --loglevel=debug