-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: reconfigure release-please (#230)
- Loading branch information
Showing
10 changed files
with
64 additions
and
115 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
{"packages/client":"4.2.3","packages/core":"4.2.3","packages/interface":"4.2.3","packages/principal":"4.2.3","packages/server":"4.2.3","packages/transport":"4.2.3","packages/validator":"4.2.3"} | ||
{ | ||
"packages/client": "4.2.3", | ||
"packages/core": "4.2.3", | ||
"packages/interface": "4.2.3", | ||
"packages/principal": "4.2.3", | ||
"packages/server": "4.2.3", | ||
"packages/transport": "4.2.3", | ||
"packages/validator": "4.2.3" | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,104 +7,49 @@ on: | |
- main | ||
|
||
jobs: | ||
release-please: | ||
name: Release Please | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
outputs: | ||
releases_created: ${{ steps.release-please.outputs.releases_created }} | ||
steps: | ||
- name: Running Release Please | ||
uses: google-github-actions/release-please-action@v2 | ||
id: release-please | ||
uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
with: | ||
command: manifest | ||
token: ${{secrets.GITHUB_TOKEN}} | ||
default-branch: main | ||
config-file: .github/release-please-config.json | ||
manifest-file: .github/release-please-manifest.json | ||
release-type: node | ||
|
||
publish: | ||
name: Publish | ||
needs: release | ||
if: ${{steps.release.outputs.releases_created}} | ||
steps: | ||
# The logic below handles the npm publication: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
# these if statements ensure that a publication only occurs when | ||
# a new release is created: | ||
if: ${{ steps.release-please.outputs.releases_created }} | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup | ||
uses: actions/setup-node@v2 | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
if: ${{ steps.release-please.outputs.releases_created }} | ||
cache: 'pnpm' | ||
|
||
- name: Install dependencies | ||
uses: pnpm/[email protected] | ||
id: pnpm-install | ||
- name: Install | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
run_install: true | ||
if: ${{ steps.release-please.outputs.releases_created }} | ||
|
||
- name: Test | ||
run: pnpm run --if-present test:node | ||
if: ${{ steps.release-please.outputs.releases_created }} | ||
|
||
- name: Build | ||
run: pnpm run --if-present build | ||
if: ${{ steps.release-please.outputs.releases_created }} | ||
|
||
- name: Publish | ||
if: ${{ steps.release-please.outputs.releases_created }} | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
run: | | ||
pnpm -r publish --access=public | ||
update-pull-request: | ||
name: Update pull request | ||
runs-on: ubuntu-latest | ||
needs: release-please | ||
if: needs.release-please.outputs.releases_created != 'true' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: release-please/branches/main | ||
fetch-depth: 2 | ||
|
||
- name: Setup | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
id: pnpm-install | ||
with: | ||
version: 7 | ||
run_install: false | ||
|
||
- name: Updating pnpm-lock.yml file | ||
run: pnpm install --lockfile-only | ||
|
||
- name: Merging changes with last commit | ||
run: | | ||
git reset --soft HEAD~1 | ||
git add . | ||
- name: Updating pull request | ||
uses: googleapis/code-suggester@v2 | ||
env: | ||
ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
command: pr | ||
upstream_owner: ${{ github.repository_owner }} | ||
upstream_repo: ${{ github.event.repository.name }} | ||
description: '🚢 release ucanto' | ||
title: 'chore: release ucanto' | ||
message: 'chore: release ucanto' | ||
branch: release-please/branches/main | ||
primary: main | ||
force: true | ||
fork: false |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.