Skip to content

chore: bump @eslint/eslintrc from 3.2.0 to 3.3.0 #604

chore: bump @eslint/eslintrc from 3.2.0 to 3.3.0

chore: bump @eslint/eslintrc from 3.2.0 to 3.3.0 #604

name: Create Tag and Publish Package
on:
pull_request:
branches:
- main
types:
- closed
permissions:
contents: write
jobs:
tag-and-publish-package:
name: Create Tag and Publish Package
runs-on: ubuntu-latest
# Only run this job if an actual publishing should be made
if: ${{ (github.event.pull_request.merged == true) &&
(startsWith(github.event.pull_request.head.ref, 'release-')) &&
(contains(github.event.pull_request.labels.*.name, 'release')) }}
steps:
- name: Extract package from head ref
id: extract_package
run: echo "package=$(echo ${{ github.event.pull_request.head.ref }} | sed -E 's/release-(.*)@.*/\1/')" >> "$GITHUB_OUTPUT"
- name: Checkout
uses: actions/checkout@v4
with:
filter: 'blob:none'
fetch-depth: 0
fetch-tags: true
- name: Setup git user
uses: fregante/setup-git-user@v2
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: pnpm
node-version-file: package.json
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Create tag and publish package
run: |
pnpm exec nx release \
--projects=${{ steps.extract_package.outputs.package }} \
--yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Push tags
run: git push origin --follow-tags