Bump @typescript-eslint/eslint-plugin from 6.5.0 to 6.6.0 #343
Workflow file for this run
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: publish | |
on: | |
# find out the `if` condition to run workflow_dispatch | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'Hack: To identify a manual run' | |
default: 'Manual' | |
pull_request: | |
types: closed | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
if: github.event.inputs.name || (github.event.pull_request.merged && !contains(github.event.pull_request.labels.*.name, 'no publish')) | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: refs/heads/main | |
persist-credentials: false | |
- name: Install Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16 | |
- run: npm ci --ignore-scripts | |
- name: version_and_publish | |
run: | | |
git config user.name $GITHUB_ACTOR | |
git config user.email gh-actions-${GITHUB_ACTOR}@github.com | |
git remote add gh-origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc | |
npm version major | |
npm publish | |
git push gh-origin HEAD:main --follow-tags | |
env: | |
CI: true | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.LH_GITHUB_ADMIN_TOKEN }} |