Skip to content

tag npm packages

tag npm packages #5

Workflow file for this run

name: tag npm packages
on:
workflow_dispatch:
inputs:
tag:
description: A tag to add to all npm packages
required: true
jobs:
test:
name: tag npm packages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Write npm credentials
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/.npmrc
npm whoami
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Add tag
run: ./ops/npm-tag.sh "$TAG"
env:
TAG: ${{ inputs.tag }}