Skip to content

tag npm packages

tag npm packages #4

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@v2
- name: Write npm credentials
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> common/config/rush/.npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> common/config/rush/.npmrc-publish
cd common/config/rush && npm whoami
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Add tags
run: ./ops/npm-tag.sh ${{ inputs.tag }}
- name: Setup upterm session
uses: lhotari/action-upterm@v1
with:
## limits ssh access and adds the ssh public key for the user which triggered the workflow
limit-access-to-actor: true
## limits ssh access and adds the ssh public keys of the listed GitHub users
limit-access-to-users: eldargab