Skip to content

build: publish v5.9.0 #97

build: publish v5.9.0

build: publish v5.9.0 #97

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
id-token: write
contents: write
packages: write
models: read
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@6c3c2f2c1c457b00c10c4848d6f5491db3b629df # v2.18.0
with:
egress-policy: block
allowed-endpoints: >
api.github.com:443 fulcio.sigstore.dev:443 github.com:443
registry.npmjs.org:443 rekor.sigstore.dev:443
release-assets.githubusercontent.com:443
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
- name: Install Tools
uses: ./.github/actions/install-tools
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
- name: Build Package
run: pnpm run build
- name: Create GitHub Release
run: pnpm run ci:changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Clear Package JSON
run: pnpm run ci:clear
- name: Publish Root Package to NPM
run: npm publish --no-git-checks
- name: Generate Social Changelog
continue-on-error: true
run: |
pnpm social-changelog \
--org azat-io \
--repo eslint-plugin-perfectionist \
--name "ESLint Plugin Perfectionist" \
> social-post.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Post to Social Media
continue-on-error: true
run: |
pnpm crosspost \
--twitter \
--bluesky \
--mastodon \
--file social-post.txt
env:
TWITTER_API_CONSUMER_KEY: ${{ secrets.TWITTER_API_CONSUMER_KEY }}
TWITTER_API_CONSUMER_SECRET:
${{ secrets.TWITTER_API_CONSUMER_SECRET }}
TWITTER_ACCESS_TOKEN_KEY: ${{ secrets.TWITTER_ACCESS_TOKEN_KEY }}
TWITTER_ACCESS_TOKEN_SECRET:
${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
BLUESKY_HOST: ${{ secrets.BLUESKY_HOST }}
BLUESKY_IDENTIFIER: ${{ secrets.BLUESKY_IDENTIFIER }}
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }}
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
MASTODON_HOST: ${{ secrets.MASTODON_HOST }}