Skip to content

Commit

Permalink
Release Please (#42)
Browse files Browse the repository at this point in the history
* release

* manual-bootstrap

* Create .release-please-manifest.json

* test manifest

* update workflow
  • Loading branch information
andy-t-wang authored Jun 28, 2024
1 parent 94ec7b4 commit 91fafc8
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: New release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
steps:
- name: Release
id: release
uses: google-github-actions/release-please-action@v3
with:
command: manifest

publish:
needs: release
name: Publish
runs-on: ubuntu-latest
if: ${{ needs.release.outputs.releases_created }}
steps:
- uses: actions/checkout@v3

- uses: pnpm/[email protected]
with:
version: 9

- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish
run: pnpm publish -r --report-summary
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"minikit-js": "0.0.22-internal-alpha"
}
20 changes: 20 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"release-type": "node",
"packages": {
"src": {
"component": "minikit-js",
"changelog-path": "CHANGELOG.md",
"bump-minor-pre-major": false,
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false
}
},
"plugins": [
{
"type": "node-workspace",
"merge": false
}
],
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}

0 comments on commit 91fafc8

Please sign in to comment.