Bump @typescript-eslint/eslint-plugin from 6.13.1 to 8.15.0 #452
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@v4.2.2 | |
with: | |
ref: refs/heads/main | |
persist-credentials: false | |
- name: Install Node.js | |
uses: actions/setup-node@v4.1.0 | |
with: | |
node-version: 20 | |
- name: 'Install dependencies' | |
run: npm ci --ignore-scripts | |
- name: version_and_publish | |
env: | |
CI: true | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.LH_GITHUB_ADMIN_TOKEN }} | |
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 |