Skip to content

Commit

Permalink
ci: release
Browse files Browse the repository at this point in the history
  • Loading branch information
atty303 committed May 10, 2024
1 parent 02ef007 commit 58ef9ed
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: build

on:
push:
branches: [ "main" ]

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.TOKEN_APP_ID }}
private-key: ${{ secrets.TOKEN_PRIVATE_KEY }}
- uses: google-github-actions/release-please-action@v4
id: release-please
with:
token: ${{ steps.app-token.outputs.token }}

publish:
runs-on: ubuntu-latest
needs: [ release-please ]
if: ${{ needs.release-please.outputs.release_created }}
steps:
- uses: actions/checkout@v4

# - name: Download artifacts
# uses: actions/download-artifact@v4
# with:
# name: plugin
# path: build/distributions/
#
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.TOKEN_APP_ID }}
private-key: ${{ secrets.TOKEN_PRIVATE_KEY }}
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{".":"0.0.0"}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "@atty303/path-of-building",
"name": "@atty303/pob-web",
"private": true,
"version": "0.0.0",
"workspaces": [
"packages/driver",
"packages/web"
Expand Down
9 changes: 9 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "node",
"include-component-in-tag": false,
"packages": {
".": {
}
}
}

0 comments on commit 58ef9ed

Please sign in to comment.