Skip to content

Commit

Permalink
chore(ci): use release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
boneskull committed Aug 23, 2024
1 parent 0a63eb2 commit e5efa7a
Show file tree
Hide file tree
Showing 6 changed files with 1,346 additions and 5,075 deletions.
43 changes: 27 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,36 @@
name: release-please

concurrency:
group: ${{ github.workflow }}

on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release:
release-please:
name: Release Please
runs-on: ubuntu-latest
steps:
- name: Create Release
id: release
uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4

# see https://github.com/google-github-actions/release-please-action#automating-publication-to-npm
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
ref: main
if: ${{ steps.release.outputs.release_created }}

- uses: ./.github/actions/prepare
if: ${{ steps.release.outputs.release_created }}
- run: npm run build
- env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
uses: JoshuaKGoldberg/release-it-action@a5e9120c1c7bb2d6a4e9f86b9464cf830e215ae7 # v0.2.3

name: Release

on: workflow_dispatch

permissions:
contents: write
id-token: write
if: ${{ steps.release.outputs.release_created }}
- name: Publish to npm
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: npm publish
29 changes: 0 additions & 29 deletions .release-it.json

This file was deleted.

3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.1.0"
}
Loading

0 comments on commit e5efa7a

Please sign in to comment.