forked from NullVoxPopuli/ember-resources
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09f71b9
commit 6f817ee
Showing
5 changed files
with
190 additions
and
143 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ on: | |
- main | ||
- master | ||
pull_request: | ||
types: | ||
types: | ||
- labeled | ||
|
||
concurrency: | ||
|
@@ -34,6 +34,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
needs: check-plan | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
outputs: | ||
explanation: ${{ steps.explanation.outputs.text }} | ||
# only run on push event if plan wasn't updated (don't create a release plan when we're releasing) | ||
|
@@ -43,28 +46,42 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
# We need to download lots of history so that | ||
# lerna-changelog can discover what's changed since the last release | ||
# github-changelog can discover what's changed since the last release | ||
with: | ||
fetch-depth: 0 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
ref: 'main' | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 18 | ||
|
||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- run: pnpm install --frozen-lockfile | ||
|
||
- name: "Generate Explanation and Prep Changelogs" | ||
id: explanation | ||
run: | | ||
set -x | ||
set +e | ||
pnpm release-plan prepare | ||
pnpm release-plan prepare 2> >(tee -a stderr.log >&2) | ||
echo 'text<<EOF' >> $GITHUB_OUTPUT | ||
jq .description .release-plan.json -r >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
if [ $? -ne 0 ]; then | ||
echo 'text<<EOF' >> $GITHUB_OUTPUT | ||
cat stderr.log >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
else | ||
echo 'text<<EOF' >> $GITHUB_OUTPUT | ||
jq .description .release-plan.json -r >> $GITHUB_OUTPUT | ||
echo 'EOF' >> $GITHUB_OUTPUT | ||
fi | ||
env: | ||
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: peter-evans/create-pull-request@v5 | ||
- uses: peter-evans/create-pull-request@v6 | ||
with: | ||
commit-message: "Prepare Release using 'release-plan'" | ||
author: "github-actions[bot] <[email protected]>" | ||
labels: "internal" | ||
branch: release-preview | ||
title: Prepare Release | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
"license": "MIT", | ||
"author": "NullVoxPopuli", | ||
"scripts": { | ||
"reroll-lockfile": "git rm -f '**/pnpm-lock.yaml'; pnpm i", | ||
"build": "pnpm run --filter ember-resources build", | ||
"build:docs": "pnpm run --filter docs docs:collect", | ||
"ci:update": "npx ember-ci-update", | ||
|
@@ -13,15 +12,16 @@ | |
"dev:docs": "pnpm run --filter docs docs:watch --preserveWatchOutput", | ||
"dev:ember": "pnpm run --filter test-app start", | ||
"lint": "pnpm run --filter '*' lint", | ||
"lint:fix": "pnpm run --filter '*' lint:fix" | ||
"lint:fix": "pnpm run --filter '*' lint:fix", | ||
"reroll-lockfile": "git rm -f '**/pnpm-lock.yaml'; pnpm i" | ||
}, | ||
"devDependencies": { | ||
"@nullvoxpopuli/eslint-configs": "^3.2.0", | ||
"concurrently": "^8.0.0", | ||
"eslint": "^8.35.0", | ||
"loader.js": "^4.7.0", | ||
"prettier": "^3.1.1", | ||
"release-plan": "^0.6.0", | ||
"release-plan": "^0.9.0", | ||
"typescript": "^5.0.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
|
@@ -35,21 +35,20 @@ | |
"pnpm": "8.14.1" | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"@glimmer/manager": ">= 0.87.1", | ||
"@glimmer/validator": ">= 0.87.1", | ||
"release-plan": "github:embroider-build/release-plan#tmp-manypkg-dist", | ||
"ember-eslint-parser": "0.2.5", | ||
"eslint-plugin-ember": "github:ember-cli/eslint-plugin-ember#master" | ||
}, | ||
"peerDependencyRules": { | ||
"ignoreMissing": [ | ||
"webpack" | ||
], | ||
"allowAny": [ | ||
"ember-source", | ||
"typescript" | ||
], | ||
"ignoreMissing": [ | ||
"webpack" | ||
] | ||
}, | ||
"overrides": { | ||
"@glimmer/manager": ">= 0.87.1", | ||
"@glimmer/validator": ">= 0.87.1", | ||
"ember-eslint-parser": "0.2.5", | ||
"eslint-plugin-ember": "github:ember-cli/eslint-plugin-ember#master" | ||
} | ||
} | ||
} |
Oops, something went wrong.