Files
languageservices/.github/workflows/publish-npm.yml
T
Christopher Schleiden 47b302cd39 Set user and email
2022-11-09 15:19:58 -08:00

38 lines
865 B
YAML

name: Publish npm packages
on:
workflow_dispatch:
inputs:
bump:
description: How to increase the value of the
type: choice
default: patch
options:
- patch
- minor
- major
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://npm.pkg.github.com'
scope: '@github'
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Publish packages
run: npx lerna publish ${{ github.event.inputs.bump }} --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}