sirmalloc--ccstatusline
6793c75515
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
37 行
867 B
YAML
37 行
867 B
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
permissions:
|
|
contents: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
publish:
|
|
if: github.repository == 'sirmalloc/ccstatusline'
|
|
name: Publish to npm
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: oven-sh/setup-bun@v2
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 24
|
|
registry-url: "https://registry.npmjs.org"
|
|
package-manager-cache: false
|
|
- run: bun install
|
|
- run: bun run lint
|
|
- run: bun test
|
|
- run: npm publish
|
|
- name: Create GitHub release
|
|
run: >
|
|
gh release create "$GITHUB_REF_NAME"
|
|
--title "$GITHUB_REF_NAME"
|
|
--generate-notes
|
|
--notes "Published to npm: https://www.npmjs.com/package/ccstatusline"
|
|
env:
|
|
GH_TOKEN: ${{ github.token }}
|