release: v0.1.6 #8
Workflow file for this run
This file contains hidden or 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: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| run_install: false | |
| - uses: actions/setup-node@v6 | |
| with: | |
| cache: pnpm | |
| node-version: latest | |
| registry-url: https://registry.npmjs.org | |
| # npm 11.5.1 or later is required so update to latest to use OIDC trusted publisher | |
| # https://github.com/eslint/config-inspector/pull/174/files | |
| # https://github.com/e18e/ecosystem-issues/issues/201 | |
| - run: npm install -g npm@latest | |
| - run: pnpm i | |
| - run: pnpm dlx changelogithub | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - run: pnpm build | |
| - run: pnpm publish --no-git-checks --access public |