Skip to content

Bump eslint from 8.51.0 to 8.52.0 #4

Bump eslint from 8.51.0 to 8.52.0

Bump eslint from 8.51.0 to 8.52.0 #4

name: Continuous Delivery
on:
pull_request:
types:
- closed
branches:
- main
workflow_dispatch:
permissions:
contents: write
packages: write
jobs:
release:
name: Release Version
runs-on: ubuntu-latest
# Only run this job if it was done manually or the PR was merged
if: |
(github.event_name == 'workflow_dispatch' ||
github.event.pull_request.merged == true) &&
startsWith(github.head_ref, 'dependabot/') == false
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-tags: true
- name: Tag
id: tag
uses: issue-ops/[email protected]
with:
manifest-path: package.json
workspace: ${{ github.workspace }}
ref: main
- name: Create Release
id: release
uses: issue-ops/[email protected]
with:
tag: v${{ steps.tag.outputs.version }}
publish-github:
name: Publish to GitHub Packages
runs-on: ubuntu-latest
needs: release
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
fetch-tags: true
- name: Setup Node.js
id: setup-node
uses: actions/setup-node@v3
with:
node-version: 20
cache: npm
registry-url: https://npm.pkg.github.com
- name: Install Dependencies
id: install
run: npm ci
- name: Publish
id: publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm publish