tag npm packages #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | | |
echo "Tagging as $TAG" | |
ops/npm-tag.sh "$TAG" | |
env: | |
TAG: ${{ inputs.tag }} |